[svn r58020] streamline pdb pexpect test
--HG-- branch : trunk
This commit is contained in:
parent
c7e867d969
commit
7dfc85b046
|
@ -404,14 +404,15 @@ class TestInteractive(AcceptBase):
|
||||||
|
|
||||||
child = spawn("%s %s --pdb test_one.py" % (py.std.sys.executable,
|
child = spawn("%s %s --pdb test_one.py" % (py.std.sys.executable,
|
||||||
pytestpath))
|
pytestpath))
|
||||||
child.expect("(Pdb)", timeout=EXPECTTIMEOUT)
|
child.timeout = EXPECTTIMEOUT
|
||||||
|
child.expect("(Pdb)")
|
||||||
child.sendline("l")
|
child.sendline("l")
|
||||||
child.expect(".*def test_1.*", timeout=EXPECTTIMEOUT)
|
child.expect(".*def test_1.*")
|
||||||
child.sendeof()
|
child.sendeof()
|
||||||
child.expect("failures: 1", timeout=EXPECTTIMEOUT)
|
child.expect("failures: 1")
|
||||||
|
if child.isalive():
|
||||||
child.wait()
|
child.wait()
|
||||||
|
|
||||||
|
|
||||||
def test_simple_looponfailing_interaction(self):
|
def test_simple_looponfailing_interaction(self):
|
||||||
spawn = self.getspawn()
|
spawn = self.getspawn()
|
||||||
test_one = self.makepyfile(test_one="""
|
test_one = self.makepyfile(test_one="""
|
||||||
|
|
Loading…
Reference in New Issue