]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 18 Sep 2021 12:34:22 +0000 (15:34 +0300)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 12:34:22 +0000 (15:34 +0300)
commitdea59cf88adf5d20812edda330e085a4695baba4
tree9e03360107aaca83292b53743e1d10898427379c
parent94b462686b7dfabbd69cc9401037d736d71c4dc2
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.
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]