add a test for issue57 which currently needs to be fixed on py-trunk though

This commit is contained in:
holger krekel
2010-05-26 18:52:58 +02:00
parent 43c0591c55
commit e5e23fd278

View File

@@ -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)