We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb3d6d8 commit d1f2f77Copy full SHA for d1f2f77
testing/test_skipping.py
@@ -145,15 +145,15 @@ def test_func():
145
def test_xfail_xpassed(self, testdir):
146
item = testdir.getitem("""
147
import pytest
148
- @pytest.mark.xfail(reason="nope")
+ @pytest.mark.xfail(reason="this is an xfail")
149
def test_func():
150
assert 1
151
""")
152
reports = runtestprotocol(item, log=False)
153
assert len(reports) == 3
154
callreport = reports[1]
155
assert callreport.passed
156
- assert callreport.wasxfail == "nope"
+ assert callreport.wasxfail == "this is an xfail"
157
158
def test_xfail_xpassed_strict(self, testdir):
159
0 commit comments