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

Method test_stdin_restored

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

Source from the content-addressed store, hash-verified

1164 assert not out
1165
1166 def test_stdin_restored(self) -> None:
1167 old = sys.stdin
1168 with self.getcapture(in_=True):
1169 newstdin = sys.stdin
1170 assert newstdin != sys.stdin
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")

Callers

nothing calls this directly

Calls 1

getcaptureMethod · 0.95

Tested by

no test coverage detected