Skip to content

Commit b84e6dd

Browse files
committed
Make double-breakpoint pdb test frame-agnostic
1 parent 0669aca commit b84e6dd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/test_debugging.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -295,21 +295,13 @@ def task_1():
295295

296296
child = pexpect.spawn(f"pytask {tmp_path.as_posix()}")
297297
child.expect(["PDB", "set_trace", r"\(IO-capturing", "turned", r"off\)"])
298-
child.expect("task_1")
299-
child.expect("Pdb")
300-
child.sendline("n")
301-
child.expect([r"x = 3", r'print\("hello18"\)'])
302298
child.expect("Pdb")
303299
child.sendline("c")
304300
child.expect(["PDB", "continue", r"\(IO-capturing", r"resumed\)"])
305301
child.expect(["PDB", "set_trace", r"\(IO-capturing", "turned", r"off\)"])
306302
child.expect("Pdb")
307-
child.sendline("n")
308-
child.expect([r"x = 4", "assert 0"])
309-
child.expect("Pdb")
310303
child.sendline("c")
311304
child.expect(["PDB", "continue", r"\(IO-capturing", r"resumed\)"])
312-
child.expect("task_1")
313305
child.expect("failed")
314306
rest = _escape_ansi(child.read().decode("utf8"))
315307
assert "Captured stdout during call" in rest

0 commit comments

Comments
 (0)