Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pytest.raises instead of the raises argument to pytest.mark.xfail
This is more appropriate for the use case. From the pytest docs: Using pytest.raises is likely to be better for cases where you are testing exceptions your own code is deliberately raising, whereas using @pytest.mark.xfail with a check function is probably better for something like documenting unfixed bugs (where the test describes what "should" happen) or bugs in dependencies. c.f. https://docs.pytest.org/en/latest/assert.html#assertions-about-expected-exceptions
- Loading branch information