]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30856: Update TestResult early, without buffering in _Outcome (GH-28180)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 19 Sep 2021 12:24:38 +0000 (15:24 +0300)
committerGitHub <noreply@github.com>
Sun, 19 Sep 2021 12:24:38 +0000 (15:24 +0300)
commit664448d81f41c5fa971d8523a71b0f19e76cc136
treea75257125741cd1800d09d3889e37372d2f48151
parentdea59cf88adf5d20812edda330e085a4695baba4
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.
Lib/unittest/case.py
Lib/unittest/test/test_case.py
Lib/unittest/test/test_functiontestcase.py
Lib/unittest/test/test_result.py
Lib/unittest/test/test_runner.py
Lib/unittest/test/test_skipping.py
Misc/NEWS.d/next/Library/2021-09-05-21-37-28.bpo-30856.jj86y0.rst [new file with mode: 0644]