MCPcopy Index your code
hub / github.com/python/cpython / _setupStdout

Method _setupStdout

Lib/unittest/result.py:65–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 self._setupStdout()
64
65 def _setupStdout(self):
66 if self.buffer:
67 if self._stderr_buffer is None:
68 self._stderr_buffer = io.StringIO()
69 self._stdout_buffer = io.StringIO()
70 sys.stdout = self._stdout_buffer
71 sys.stderr = self._stderr_buffer
72
73 def startTestRun(self):
74 """Called once before any tests are executed.

Callers 1

startTestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected