Use proper constants in test.
@@ -2065,7 +2065,6 @@ class WriterCaseBreakpointSuspensionPolicy(debugger_unittest.AbstractWriterThrea
TEST_FILE = debugger_unittest._get_debugger_test_file('_debugger_case_suspend_policy.py')
def run(self):
- from tests_python.debugger_unittest import CMD_THREAD_SUSPEND, CMD_SET_BREAK
self.start_socket()
self.write_add_breakpoint(27, '', filename=self.TEST_FILE, hit_condition='', is_logpoint=False, suspend_policy='ALL')
self.write_make_initial_run()
@@ -2074,7 +2073,7 @@ class WriterCaseBreakpointSuspensionPolicy(debugger_unittest.AbstractWriterThrea
for i in range(3):
self.log.append('Waiting for thread %s of 3 to stop' % (i + 1,))
# One thread is suspended with a breakpoint hit and the other 2 as thread suspended.
- thread_id, _frame_id = self.wait_for_breakpoint_hit((CMD_SET_BREAK, CMD_THREAD_SUSPEND))
+ thread_id, _frame_id = self.wait_for_breakpoint_hit((REASON_STOP_ON_BREAKPOINT, REASON_THREAD_SUSPEND))
thread_ids.append(thread_id)
for thread_id in thread_ids:
