Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8242 from bluetech/deprecate-unittest-skip-collec…
…tion Deprecate raising unittest.SkipTest to skip tests during collection
- Loading branch information
Showing
5 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Raising :class:`unittest.SkipTest` to skip collection of tests during the | ||
pytest collection phase is deprecated. Use :func:`pytest.skip` instead. | ||
|
||
Note: This deprecation only relates to using `unittest.SkipTest` during test | ||
collection. You are probably not doing that. Ordinary usage of | ||
:class:`unittest.SkipTest` / :meth:`unittest.TestCase.skipTest` / | ||
:func:`unittest.skip` in unittest test cases is fully supported. |
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
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