fix --pdb to not drop interactive on xfailed tests

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-06-16 12:35:08 +02:00
parent 72de7d94fd
commit 3f1efe1b57
5 changed files with 28 additions and 16 deletions

View File

@@ -1,5 +1,4 @@
docutils
pygments
pexpect
figleaf
hg+http://bitbucket.org/hpk42/execnet#egg=execnet

View File

@@ -20,6 +20,16 @@ class TestPDB:
tb = py.code.Traceback(pdblist[0][0])
assert tb[-1].name == "test_func"
def test_pdb_on_xfail(self, testdir, pdblist):
rep = testdir.inline_runsource1('--pdb', """
import py
@py.test.mark.xfail
def test_func():
assert 0
""")
assert "xfail" in rep.keywords
assert not pdblist
def test_pdb_on_skip(self, testdir, pdblist):
rep = testdir.inline_runsource1('--pdb', """
import py