From be511c1a054b718b839dc847001ea50262c834b1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 10 Oct 2018 20:49:45 +0200 Subject: [PATCH] tests: add missing expect before sendeof for pdbpp With pdb++ this additional `expect` is required, otherwise `sendeof()` will block forever. --- testing/test_pdb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/test_pdb.py b/testing/test_pdb.py index bcc4f65cf..da75a19a7 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -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)