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

Method test_no_captured_text

testing/test_runner.py:1026–1035  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1024 assert teardown.capstderr == "setup: stderr\ncall: stderr\nteardown: stderr\n"
1025
1026 def test_no_captured_text(self, pytester: Pytester) -> None:
1027 reports = pytester.runitem(
1028 """
1029 def test_func():
1030 pass
1031 """
1032 )
1033 rep = reports[1]
1034 assert rep.capstdout == ""
1035 assert rep.capstderr == ""
1036
1037 def test_longrepr_type(self, pytester: Pytester) -> None:
1038 reports = pytester.runitem(

Callers

nothing calls this directly

Calls 1

runitemMethod · 0.45

Tested by

no test coverage detected