summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorRaphael Pierzina <raphael@hackebrot.de>2016-08-17 22:32:27 +0100
committerRaphael Pierzina <raphael@hackebrot.de>2016-08-17 22:32:27 +0100
commit767c28d42257a3ddedd70dcfe429d9333eb5f9cb (patch)
treecca532ecd393034dfb153181ebf48f85902d4787 /testing
parentd1f2f779ee701838a2182d57e31535dc3c37d000 (diff)
downloadpytest-767c28d42257a3ddedd70dcfe429d9333eb5f9cb.tar.gz
Fix broken test in test_junitxml
Diffstat (limited to 'testing')
-rw-r--r--testing/test_junitxml.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py
index f4bf2e631..899cc5880 100644
--- a/testing/test_junitxml.py
+++ b/testing/test_junitxml.py
@@ -115,13 +115,16 @@ class TestPython:
def test_error(fixture):
pass
@pytest.mark.xfail
+ def test_xfail():
+ assert False
+ @pytest.mark.xfail(strict=True)
def test_xpass():
- assert 1
+ assert True
""")
result, dom = runandparse(testdir)
assert result.ret
node = dom.find_first_by_tag("testsuite")
- node.assert_attr(name="pytest", errors=1, failures=1, skips=1, tests=4)
+ node.assert_attr(name="pytest", errors=1, failures=2, skips=1, tests=5)
def test_timing_function(self, testdir):
testdir.makepyfile("""