forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for using xfail in test cases (python#10635)
Add support for adding -xfail to the end of a test case in a .test file to make pytest mark it as expected to fail (so that the test is run but the test suite doesn't fail if the test fails). Turns on xfail_strict in the pytest config so that tests marked as xfails that suddenly start passing get marked as failures. This makes sure that some tests don't end up getting marked as xfails for a long time after they started working correctly, which makes sure that they can get turned into regular tests as soon as possible. That makes sure that we can use those tests to catch regressions, instead of silently ignoring when they fail. Closes python#10604
- Loading branch information
1 parent
7f92107
commit fe157d4
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters