Skip to content

Commit be511c1

Browse files
committed
tests: add missing expect before sendeof for pdbpp
With pdb++ this additional `expect` is required, otherwise `sendeof()` will block forever.
1 parent f36f9d2 commit be511c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/test_pdb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ def test_1():
477477
child.expect("Pdb")
478478
child.sendline("c")
479479
child.expect("x = 4")
480+
child.expect("Pdb")
480481
child.sendeof()
481482
rest = child.read().decode("utf8")
482483
assert "1 failed" in rest
@@ -495,6 +496,7 @@ def test_pdb_used_outside_test(self, testdir):
495496
)
496497
child = testdir.spawn("{} {}".format(sys.executable, p1))
497498
child.expect("x = 5")
499+
child.expect("Pdb")
498500
child.sendeof()
499501
self.flush(child)
500502

@@ -511,6 +513,7 @@ def test_foo(a):
511513
)
512514
child = testdir.spawn_pytest(str(p1))
513515
child.expect("x = 5")
516+
child.expect("Pdb")
514517
child.sendeof()
515518
self.flush(child)
516519

0 commit comments

Comments
 (0)