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

Function test_reportchars_error

testing/test_skipping.py:1063–1075  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1061
1062
1063def test_reportchars_error(pytester: Pytester) -> None:
1064 pytester.makepyfile(
1065 conftest="""
1066 def pytest_runtest_teardown():
1067 assert 0
1068 """,
1069 test_simple="""
1070 def test_foo():
1071 pass
1072 """,
1073 )
1074 result = pytester.runpytest("-rE")
1075 result.stdout.fnmatch_lines(["ERROR*test_foo*"])
1076
1077
1078def test_reportchars_all(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected