MCPcopy
hub / github.com/pytest-dev/pytest / test_match_succeeds

Function test_match_succeeds

testing/code/test_excinfo.py:438–441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436
437
438def test_match_succeeds():
439 with pytest.raises(ZeroDivisionError) as excinfo:
440 _ = 0 // 0
441 excinfo.match(r".*zero.*")
442
443
444def test_match_raises_error(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected