MCPcopy
hub / github.com/pytest-dev/pytest / test_stdin_restored

Method test_stdin_restored

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

Source from the content-addressed store, hash-verified

1244 assert not out
1245
1246 def test_stdin_restored(self) -> None:
1247 old = sys.stdin
1248 with self.getcapture(in_=True):
1249 newstdin = sys.stdin
1250 assert newstdin != sys.stdin
1251 assert sys.stdin is old
1252
1253 def test_stdin_nulled_by_default(self) -> None:
1254 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