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

Method test_skipif_noreason

testing/test_skipping.py:1272–1286  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1270 )
1271
1272 def test_skipif_noreason(self, pytester: Pytester) -> None:
1273 pytester.makepyfile(
1274 """
1275 import pytest
1276 @pytest.mark.skipif(True)
1277 def test_func():
1278 pass
1279 """
1280 )
1281 result = pytester.runpytest("-rs")
1282 result.stdout.fnmatch_lines(
1283 """
1284 *1 error*
1285 """
1286 )
1287
1288 def test_xfail(self, pytester: Pytester) -> None:
1289 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected