From d1f2f779ee701838a2182d57e31535dc3c37d000 Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Wed, 17 Aug 2016 22:31:56 +0100 Subject: [PATCH] Use a better xfail reason --- testing/test_skipping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_skipping.py b/testing/test_skipping.py index 4339da708..3b4bc7bd2 100644 --- a/testing/test_skipping.py +++ b/testing/test_skipping.py @@ -145,7 +145,7 @@ class TestXFail: def test_xfail_xpassed(self, testdir): item = testdir.getitem(""" import pytest - @pytest.mark.xfail(reason="nope") + @pytest.mark.xfail(reason="this is an xfail") def test_func(): assert 1 """) @@ -153,7 +153,7 @@ class TestXFail: assert len(reports) == 3 callreport = reports[1] assert callreport.passed - assert callreport.wasxfail == "nope" + assert callreport.wasxfail == "this is an xfail" def test_xfail_xpassed_strict(self, testdir): item = testdir.getitem("""