summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-19 12:24:38 (GMT)
committerGitHub <noreply@github.com>2021-09-19 12:24:38 (GMT)
commit664448d81f41c5fa971d8523a71b0f19e76cc136 (patch)
treea75257125741cd1800d09d3889e37372d2f48151 /Misc/NEWS.d
parentdea59cf88adf5d20812edda330e085a4695baba4 (diff)
downloadcpython-664448d81f41c5fa971d8523a71b0f19e76cc136.zip
cpython-664448d81f41c5fa971d8523a71b0f19e76cc136.tar.gz
cpython-664448d81f41c5fa971d8523a71b0f19e76cc136.tar.bz2
bpo-30856: Update TestResult early, without buffering in _Outcome (GH-28180)
TestResult methods addFailure(), addError(), addSkip() and addSubTest() are now called immediately after raising an exception in test or finishing a subtest. Previously they were called only after finishing the test clean up.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2021-09-05-21-37-28.bpo-30856.jj86y0.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-09-05-21-37-28.bpo-30856.jj86y0.rst b/Misc/NEWS.d/next/Library/2021-09-05-21-37-28.bpo-30856.jj86y0.rst
new file mode 100644
index 0000000..1ac4eb6
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-09-05-21-37-28.bpo-30856.jj86y0.rst
@@ -0,0 +1,6 @@
+:class:`unittest.TestResult` methods
+:meth:`~unittest.TestResult.addFailure`,
+:meth:`~unittest.TestResult.addError`, :meth:`~unittest.TestResult.addSkip`
+and :meth:`~unittest.TestResult.addSubTest` are now called immediately after
+raising an exception in test or finishing a subtest. Previously they were
+called only after finishing the test clean up.