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

Method test_capsyscapfdbinary

testing/test_capture.py:488–498  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

486 )
487
488 def test_capsyscapfdbinary(self, pytester: Pytester) -> None:
489 p = pytester.makepyfile(
490 """\
491 def test_one(capsys, capfdbinary):
492 pass
493 """
494 )
495 result = pytester.runpytest(p)
496 result.stdout.fnmatch_lines(
497 ["*ERROR*setup*test_one*", "E*capfdbinary*capsys*same*time*", "*1 error*"]
498 )
499
500 @pytest.mark.parametrize("method", ["sys", "fd"])
501 def test_capture_is_represented_on_failure_issue128(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected