mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
gh-113267: Revert "gh-106584: Fix exit code for unittest in Python 3.12 (#106588)" (GH-114470)
This reverts commit 8fc071345b
.
This commit is contained in:
parent
ca715e56a1
commit
ecabff98c4
5 changed files with 14 additions and 16 deletions
|
@ -97,12 +97,10 @@ class TestResult(object):
|
|||
|
||||
sys.stdout = self._original_stdout
|
||||
sys.stderr = self._original_stderr
|
||||
if self._stdout_buffer is not None:
|
||||
self._stdout_buffer.seek(0)
|
||||
self._stdout_buffer.truncate()
|
||||
if self._stderr_buffer is not None:
|
||||
self._stderr_buffer.seek(0)
|
||||
self._stderr_buffer.truncate()
|
||||
self._stdout_buffer.seek(0)
|
||||
self._stdout_buffer.truncate()
|
||||
self._stderr_buffer.seek(0)
|
||||
self._stderr_buffer.truncate()
|
||||
|
||||
def stopTestRun(self):
|
||||
"""Called once after all tests are executed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue