tests: add missing expect before sendeof for pdbpp

With pdb++ this additional `expect` is required, otherwise `sendeof()`
will block forever.
This commit is contained in:
Daniel Hahler 2018-10-10 20:49:45 +02:00
parent f36f9d2698
commit be511c1a05
1 changed files with 3 additions and 0 deletions

View File

@ -477,6 +477,7 @@ class TestPDB(object):
child.expect("Pdb")
child.sendline("c")
child.expect("x = 4")
child.expect("Pdb")
child.sendeof()
rest = child.read().decode("utf8")
assert "1 failed" in rest
@ -495,6 +496,7 @@ class TestPDB(object):
)
child = testdir.spawn("{} {}".format(sys.executable, p1))
child.expect("x = 5")
child.expect("Pdb")
child.sendeof()
self.flush(child)
@ -511,6 +513,7 @@ class TestPDB(object):
)
child = testdir.spawn_pytest(str(p1))
child.expect("x = 5")
child.expect("Pdb")
child.sendeof()
self.flush(child)