Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ stopTest
Method
stopTest
Lib/unittest/result.py:79–82 ·
view source on GitHub ↗
Called when the given test has been run
(self, test)
Source
from the content-addressed store, hash-verified
77
""
"
78
79
def
stopTest(self, test):
80
""
"Called when the given test has been run"
""
81
self._restoreStdout()
82
self._mirrorOutput = False
83
84
def
_restoreStdout(self):
85
if
self.buffer:
Callers
11
test_startTest
Method · 0.95
test_stopTest
Method · 0.95
test_addSuccess
Method · 0.95
test_addFailure
Method · 0.95
test_addFailure_filter_traceback_frames
Method · 0.95
test_addFailure_filter_traceback_frames_context
Method · 0.95
test_addFailure_filter_traceback_frames_chained_exception_self_loop
Method · 0.95
test_addFailure_filter_traceback_frames_chained_exception_cycle
Method · 0.95
test_addError
Method · 0.95
testBufferOutputStartTestAddSuccess
Method · 0.95
run
Method · 0.45
Calls
1
_restoreStdout
Method · 0.95
Tested by
10
test_startTest
Method · 0.76
test_stopTest
Method · 0.76
test_addSuccess
Method · 0.76
test_addFailure
Method · 0.76
test_addFailure_filter_traceback_frames
Method · 0.76
test_addFailure_filter_traceback_frames_context
Method · 0.76
test_addFailure_filter_traceback_frames_chained_exception_self_loop
Method · 0.76
test_addFailure_filter_traceback_frames_chained_exception_cycle
Method · 0.76
test_addError
Method · 0.76
testBufferOutputStartTestAddSuccess
Method · 0.76