]> 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 07:55:34 +0000 (00:55 -0700)
committerGitHub <noreply@github.com>
Sun, 22 Aug 2021 07:55:34 +0000 (00:55 -0700)
commitd63114caf9384ead7baf872598acdff25315a5bf
treed42bc14704dacabf2af1093b50be56eaa4376e87
parent519bcc698c436e12bd6c1ff6f2517060719c60d5
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.
(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]