]> 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:40 +0000 (06:22 -0700)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 13:22:40 +0000 (06:22 -0700)
commit7e465a6b8273dc0b6cb484c65664f618afa22484
tree316e9b63e4b4132bbb8d045e6f9c4d2400493146
parenta18d52269ab6071a605d6c72f6af585a4c533ca4
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]