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

Function test_failure_in_setup

testing/test_runner.py:821–831  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

819
820
821def test_failure_in_setup(pytester: Pytester) -> None:
822 pytester.makepyfile(
823 """
824 def setup_module():
825 0/0
826 def test_func():
827 pass
828 """
829 )
830 result = pytester.runpytest("--tb=line")
831 result.stdout.no_fnmatch_line("*def setup_module*")
832
833
834def test_makereport_getsource(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

no_fnmatch_lineMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected