]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 18 Sep 2021 13:22:31 +0000 (06:22 -0700)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 13:22:31 +0000 (06:22 -0700)
commit753f7af22e78456726496fd5d8bf38e7e6567e4e
treeae83b7deac44ce9bd878ffbcfc16d89b7c92dd00
parent7ab114bf1fa0f28ee267a4c69e597cc49a186a14
bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)

unittest.TestCase.debug() raises now a SkipTest if the class or
the test method are decorated with the skipping decorator.

Previously it only raised a SkipTest if the test method was decorated
with other decorator in addition to the skipping decorator, or
if SkipTest was explicitly raised in the test or setup methods.
(cherry picked from commit dea59cf88adf5d20812edda330e085a4695baba4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/unittest/case.py
Lib/unittest/test/test_skipping.py
Misc/NEWS.d/next/Library/2021-09-18-13-14-57.bpo-36674.a2k5Zb.rst [new file with mode: 0644]