Skip to content

Commit 7f60c03

Browse files
committed
Correct output for pdb when turning on tracing in middle of line
1 parent 5887847 commit 7f60c03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_pdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,8 @@ def test_pdb_issue_20766():
12881288
-> print('pdb %d: %s' % (i, sess._previous_sigint_handler))
12891289
(Pdb) continue
12901290
pdb 1: <built-in function default_int_handler>
1291-
> <doctest test.test_pdb.test_pdb_issue_20766[0]>(5)test_function()
1292-
-> sess.set_trace(sys._getframe())
1291+
> <doctest test.test_pdb.test_pdb_issue_20766[0]>(6)test_function()
1292+
-> print('pdb %d: %s' % (i, sess._previous_sigint_handler))
12931293
(Pdb) continue
12941294
pdb 2: <built-in function default_int_handler>
12951295
"""

0 commit comments

Comments
 (0)