File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4595,26 +4595,13 @@ def foo():
45954595 class C:
45964596 def foo(self):
45974597 test_str = "break C.foo"
4598-
4599- foo()
4600- C().foo()
46014598 """
46024599 commands = """
4603- break foo
4604- break C.foo
4605- continue
46064600 break C.foo
4607- continue
46084601 quit
46094602 """
46104603 stdout , stderr = self .run_pdb_script (script , commands )
4611- res_lines = [x .strip () for x in stdout .splitlines ()]
4612- # can't set breakpoint before class C is defined, and gives an error
4613- self .assertIn ("The specified object 'C.foo' is not a function" , res_lines [3 ])
4614- # can set correctly after the class C is defined
4615- self .assertRegex (res_lines [6 ], r"Breakpoint 2 at .*main\.py:7" )
4616- self .assertIn ('test_str = "break C.foo"' , res_lines [8 ])
4617-
4604+ self .assertIn ("The specified object 'C.foo' is not a function" , stdout )
46184605
46194606
46204607class ChecklineTests (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments