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

Method test_stderr

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

Source from the content-addressed store, hash-verified

984 pytest.raises(AssertionError, cap.start)
985
986 def test_stderr(self) -> None:
987 cap = capture.FDCapture(2)
988 cap.start()
989 print("hello", file=sys.stderr)
990 s = cap.snap()
991 cap.done()
992 assert s == "hello\n"
993
994 def test_stdin(self) -> None:
995 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