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

Method test_partial_setup_failure

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

Source from the content-addressed store, hash-verified

583 )
584
585 def test_partial_setup_failure(self, pytester: Pytester) -> None:
586 p = pytester.makepyfile(
587 """\
588 def test_hello(capsys, missingarg):
589 pass
590 """
591 )
592 result = pytester.runpytest(p)
593 result.stdout.fnmatch_lines(["*test_partial_setup_failure*", "*1 error*"])
594
595 def test_keyboardinterrupt_disables_capturing(self, pytester: Pytester) -> None:
596 p = pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected