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

Method test_stderr

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

Source from the content-addressed store, hash-verified

1065 cap.start()
1066
1067 def test_stderr(self) -> None:
1068 cap = capture.FDCapture(2)
1069 cap.start()
1070 print("hello", file=sys.stderr)
1071 s = cap.snap()
1072 cap.done()
1073 assert s == "hello\n"
1074
1075 def test_stdin(self) -> None:
1076 cap = capture.FDCapture(0)

Callers

nothing calls this directly

Calls 3

snapMethod · 0.95
startMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected