]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 22 Aug 2021 07:33:52 +0000 (10:33 +0300)
committerGitHub <noreply@github.com>
Sun, 22 Aug 2021 07:33:52 +0000 (10:33 +0300)
commita9640d75531d6cbbfd254b65435f238c26bf5cd9
treee72cffaf6084e3ee60bfddfbe1f771158ee84f9a
parent64f9e7b19dc1603fcbd07c17c9860085b9d21465
bpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH-27831)

Method stopTestRun() is now always called in pair with method startTestRun()
for TestResult objects implicitly created in TestCase.run().
Previously it was not called for test methods and classes decorated with
a skipping decorator.
Lib/unittest/case.py
Lib/unittest/test/test_skipping.py
Misc/NEWS.d/next/Library/2021-08-19-15-03-54.bpo-44955.1mxFQS.rst [new file with mode: 0644]