From 15c51c497bad1e32b65fa32d464604b4a45c9dcc Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 9 Aug 2017 14:31:42 +0200 Subject: [PATCH] mark looponfail tests broken by 3.1+ as xfail --- testing/test_looponfail.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/test_looponfail.py b/testing/test_looponfail.py index 6c714fd..e6d2bb9 100644 --- a/testing/test_looponfail.py +++ b/testing/test_looponfail.py @@ -193,6 +193,8 @@ class TestLooponFailing: assert 'test_one' not in remotecontrol.failures[0] assert 'test_two' in remotecontrol.failures[0] + @py.test.mark.xfail(py.test.__version__ >= "3.1", + reason="broken by pytest 3.1+") def test_looponfail_removed_test(self, testdir): modcol = testdir.getmodulecol(""" def test_one():