]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 22 Aug 2021 18:15:10 +0000 (11:15 -0700)
committerGitHub <noreply@github.com>
Sun, 22 Aug 2021 18:15:10 +0000 (21:15 +0300)
commit4e5162fd369baf25dd16a42ccd0fa7756744f4d0
tree13acef527e186e09dc7904526eec05d696060735
parent407b3e0bb028c30fbf5efcf58c70c50eaa6712b0
bpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH-27831) (GH-27882)

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.
(cherry picked from commit a9640d75531d6cbbfd254b65435f238c26bf5cd9)

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-19-15-03-54.bpo-44955.1mxFQS.rst [new file with mode: 0644]