summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library/2021-08-19-15-03-54.bpo-44955.1mxFQS.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-08-22 07:33:52 (GMT)
committerGitHub <noreply@github.com>2021-08-22 07:33:52 (GMT)
commita9640d75531d6cbbfd254b65435f238c26bf5cd9 (patch)
treee72cffaf6084e3ee60bfddfbe1f771158ee84f9a /Misc/NEWS.d/next/Library/2021-08-19-15-03-54.bpo-44955.1mxFQS.rst
parent64f9e7b19dc1603fcbd07c17c9860085b9d21465 (diff)
downloadcpython-a9640d75531d6cbbfd254b65435f238c26bf5cd9.zip
cpython-a9640d75531d6cbbfd254b65435f238c26bf5cd9.tar.gz
cpython-a9640d75531d6cbbfd254b65435f238c26bf5cd9.tar.bz2
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.
Diffstat (limited to 'Misc/NEWS.d/next/Library/2021-08-19-15-03-54.bpo-44955.1mxFQS.rst')
-rw-r--r--Misc/NEWS.d/next/Library/2021-08-19-15-03-54.bpo-44955.1mxFQS.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-19-15-03-54.bpo-44955.1mxFQS.rst b/Misc/NEWS.d/next/Library/2021-08-19-15-03-54.bpo-44955.1mxFQS.rst
new file mode 100644
index 0000000..57d1da5
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-08-19-15-03-54.bpo-44955.1mxFQS.rst
@@ -0,0 +1,5 @@
+Method :meth:`~unittest.TestResult.stopTestRun` is now always called in pair
+with method :meth:`~unittest.TestResult.startTestRun` for
+:class:`~unittest.TestResult` objects implicitly created in
+:meth:`~unittest.TestCase.run`. Previously it was not called for test
+methods and classes decorated with a skipping decorator.