File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1692,7 +1692,7 @@ def do_clear(self, arg):
16921692 if find_res :
16931693 _ , filename , lineno = find_res
16941694 else :
1695- err = "Invalid line number or function name:(%r )" % arg
1695+ err = "Invalid line number or function name:(%s )" % arg
16961696 if not err :
16971697 bplist = self .get_breaks (filename , lineno )[:]
16981698 err = self .clear_break (filename , lineno )
Original file line number Diff line number Diff line change @@ -4629,10 +4629,12 @@ def foo():
46294629 """
46304630 commands = """
46314631 break main:foo
4632+ clear main:foo
46324633 quit
46334634 """
46344635 stdout , stderr = self .run_pdb_script (script , commands )
46354636 self .assertRegex (stdout , r"Breakpoint 1 at .*main\.py:3" )
4637+ self .assertRegex (stdout , r"Deleted breakpoint 1 at .*main\.py:3" )
46364638
46374639
46384640class ChecklineTests (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments