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

Function test_skip_not_report_default

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

Source from the content-addressed store, hash-verified

949
950
951def test_skip_not_report_default(pytester: Pytester) -> None:
952 p = pytester.makepyfile(
953 test_one="""
954 import pytest
955 def test_this():
956 pytest.skip("hello")
957 """
958 )
959 result = pytester.runpytest(p, "-v")
960 result.stdout.fnmatch_lines(
961 [
962 # "*HINT*use*-r*",
963 "*1 skipped*"
964 ]
965 )
966
967
968def test_skipif_class(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