MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_stdin_nulled_by_default

Method test_stdin_nulled_by_default

testing/test_capture.py:1173–1178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1171 assert sys.stdin is old
1172
1173 def test_stdin_nulled_by_default(self) -> None:
1174 print("XXX this test may well hang instead of crashing")
1175 print("XXX which indicates an error in the underlying capturing")
1176 print("XXX mechanisms")
1177 with self.getcapture():
1178 pytest.raises(OSError, sys.stdin.read)
1179
1180
1181class TestTeeStdCapture(TestStdCapture):

Callers

nothing calls this directly

Calls 1

getcaptureMethod · 0.95

Tested by

no test coverage detected