Skip to content

Commit 10adb25

Browse files
committed
fixup! Merge branch 'master' into trace-quit
1 parent 826dccf commit 10adb25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testing/test_pdb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def test_1():
768768
child.expect("Pdb")
769769
child.sendeof()
770770
rest = child.read().decode("utf8")
771-
assert "1 failed" in rest
771+
assert "Quitting debugger" in rest
772772
assert "reading from stdin while output" not in rest
773773
TestPDB.flush(child)
774774

@@ -781,12 +781,13 @@ def test_pdb_not_altered(self, testdir):
781781
import pdb
782782
def test_1():
783783
pdb.set_trace()
784+
assert 0
784785
"""
785786
)
786787
child = testdir.spawn_pytest(str(p1))
787788
child.expect("test_1")
788789
child.expect("Pdb")
789-
child.sendeof()
790+
child.sendline("c")
790791
rest = child.read().decode("utf8")
791792
assert "1 failed" in rest
792793
assert "reading from stdin while output" not in rest

0 commit comments

Comments
 (0)