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

Function test_collect_error_with_fulltrace

testing/python/collect.py:1344–1360  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1342
1343
1344def test_collect_error_with_fulltrace(pytester: Pytester) -> None:
1345 pytester.makepyfile("assert 0")
1346 result = pytester.runpytest("--fulltrace")
1347 result.stdout.fnmatch_lines(
1348 [
1349 "collected 0 items / 1 error",
1350 "",
1351 "*= ERRORS =*",
1352 "*_ ERROR collecting test_collect_error_with_fulltrace.py _*",
1353 "",
1354 "> assert 0",
1355 "E assert 0",
1356 "",
1357 "test_collect_error_with_fulltrace.py:1: AssertionError",
1358 "*! Interrupted: 1 error during collection !*",
1359 ]
1360 )
1361
1362
1363def test_skip_duplicates_by_default(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