]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Aug 2021 13:42:34 +0000 (06:42 -0700)
committerGitHub <noreply@github.com>
Mon, 30 Aug 2021 13:42:34 +0000 (15:42 +0200)
commit0c5e0aa73f6f70d16d21ad9e1eb2d0fe3a334f0a
tree7f19a1662005ec93ba0f2c88896629b79794ed2b
parent576803d7a8083cb25c58be08d3cb31e05d5d2f8a
bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030) (GH-28065)

Previously it returned None if the test class or method was
decorated with a skipping decorator.

Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com>
(cherry picked from commit 7e246a3a7b43762480ee4fe0cfb859e8e997a8c8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/unittest/case.py
Lib/unittest/test/test_skipping.py
Misc/NEWS.d/next/Library/2021-08-29-14-49-22.bpo-41620.WJ6PFL.rst [new file with mode: 0644]