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

Method test_xfail_not_report_default

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

Source from the content-addressed store, hash-verified

410 assert "xfail" in callreport.keywords
411
412 def test_xfail_not_report_default(self, pytester: Pytester) -> None:
413 p = pytester.makepyfile(
414 test_one="""
415 import pytest
416 @pytest.mark.xfail
417 def test_this():
418 assert 0
419 """
420 )
421 pytester.runpytest(p, "-v")
422 # result.stdout.fnmatch_lines([
423 # "*HINT*use*-r*"
424 # ])
425
426 def test_xfail_not_run_xfail_reporting(self, pytester: Pytester) -> None:
427 p = pytester.makepyfile(

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected