@@ -55,14 +55,12 @@ def test_basic(self):
55
55
self .assertEqual (len (step_in_targets ), 3 , "expect 3 step in targets" )
56
56
57
57
# Verify the target names are correct.
58
- self .assertEqual (step_in_targets [0 ]["label" ], "bar()" , "expect bar()" )
59
- self .assertEqual (step_in_targets [1 ]["label" ], "bar2()" , "expect bar2()" )
60
- self .assertEqual (
61
- step_in_targets [2 ]["label" ], "foo(int, int)" , "expect foo(int, int)"
62
- )
58
+ self .assertIn ("funcB" , step_in_targets [0 ]["label" ], "expect funcB" )
59
+ self .assertIn ("funcA" , step_in_targets [1 ]["label" ], "expect funcA" )
60
+ self .assertIn ("foo" , step_in_targets [2 ]["label" ], "expect foo" )
63
61
64
- # Choose to step into second target and verify that we are in bar2 ()
62
+ # Choose to step into second target and verify that we are in funcB ()
65
63
self .stepIn (threadId = tid , targetId = step_in_targets [1 ]["id" ], waitForStop = True )
66
64
leaf_frame = self .dap_server .get_stackFrame ()
67
65
self .assertIsNotNone (leaf_frame , "expect a leaf frame" )
68
- self .assertEqual ( leaf_frame ["name" ], "bar2() " )
66
+ self .assertIn ( "funcB" , leaf_frame ["name" ], "expect funcB " )
0 commit comments