From e5e23fd278051c12bd3fea0de6f0e46791f97b65 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 26 May 2010 18:52:58 +0200 Subject: [PATCH] add a test for issue57 which currently needs to be fixed on py-trunk though --- testing/test_remote.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/testing/test_remote.py b/testing/test_remote.py index 94d8391..4510f73 100644 --- a/testing/test_remote.py +++ b/testing/test_remote.py @@ -146,3 +146,16 @@ class TestLooponFailing: child.expect(".*1 passed.*") child.kill(15) + def test_looponfail_xfail_passes(self, testdir): + p = testdir.makepyfile(""" + import py + @py.test.mark.xfail + def test_one(): + pass + """) + child = testdir.spawn_pytest("-f %s" % p) + child.expect("1 xpass") + child.expect("### LOOPONFAILING ####") + child.expect("waiting for changes") + child.kill(15) +