File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -3478,8 +3478,8 @@ def test_pdb_issue_gh_65052():
34783478 (Pdb) continue
34793479 """
34803480
3481- def test_pdb_issue_142834 ():
3482- """See issue -142834
3481+ def test_pdb_commands_last_breakpoint ():
3482+ """See GH -142834
34833483
34843484 >>> def test_function():
34853485 ... import pdb; pdb.Pdb(nosigint=True, readrc=False).set_trace()
@@ -3494,25 +3494,31 @@ def test_pdb_issue_142834():
34943494 ... 'p "success"',
34953495 ... 'end',
34963496 ... 'continue',
3497- ... '',
3497+ ... 'clear 1',
3498+ ... 'commands',
3499+ ... 'continue',
34983500 ... ]):
34993501 ... test_function()
3500- > <doctest test.test_pdb.test_pdb_issue_142834 [0]>(2)test_function()
3502+ > <doctest test.test_pdb.test_pdb_commands_last_breakpoint [0]>(2)test_function()
35013503 -> import pdb; pdb.Pdb(nosigint=True, readrc=False).set_trace()
35023504 (Pdb) break 4
3503- Breakpoint 1 at <doctest test.test_pdb.test_pdb_issue_142834 [0]>:4
3505+ Breakpoint 1 at <doctest test.test_pdb.test_pdb_commands_last_breakpoint [0]>:4
35043506 (Pdb) break 3
3505- Breakpoint 2 at <doctest test.test_pdb.test_pdb_issue_142834 [0]>:3
3507+ Breakpoint 2 at <doctest test.test_pdb.test_pdb_commands_last_breakpoint [0]>:3
35063508 (Pdb) clear 2
3507- Deleted breakpoint 2 at <doctest test.test_pdb.test_pdb_issue_142834 [0]>:3
3509+ Deleted breakpoint 2 at <doctest test.test_pdb.test_pdb_commands_last_breakpoint [0]>:3
35083510 (Pdb) commands
35093511 (com) p "success"
35103512 (com) end
35113513 (Pdb) continue
35123514 'success'
3513- > <doctest test.test_pdb.test_pdb_issue_142834 [0]>(4)test_function()
3515+ > <doctest test.test_pdb.test_pdb_commands_last_breakpoint [0]>(4)test_function()
35143516 -> bar = 2
3515- (Pdb)
3517+ (Pdb) clear 1
3518+ Deleted breakpoint 1 at <doctest test.test_pdb.test_pdb_commands_last_breakpoint[0]>:4
3519+ (Pdb) commands
3520+ *** no breakpoints set
3521+ (Pdb) continue
35163522 """
35173523
35183524
You can’t perform that action at this time.
0 commit comments