mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Workaround for #1028 in test_thread_count.
This commit is contained in:
parent
ce16aa3e93
commit
7c07801024
1 changed files with 6 additions and 3 deletions
|
|
@ -34,7 +34,12 @@ def test_thread_count(pyfile, run_as, start_method, count):
|
|||
stop = True
|
||||
|
||||
with DebugSession() as session:
|
||||
session.initialize(target=(run_as, code_to_debug), start_method=start_method, program_args=[str(count)])
|
||||
session.initialize(
|
||||
target=(run_as, code_to_debug),
|
||||
start_method=start_method,
|
||||
program_args=[str(count)],
|
||||
ignore_unobserved=[Event('continued')],
|
||||
)
|
||||
session.set_breakpoints(code_to_debug, [19])
|
||||
session.start_debugging()
|
||||
session.wait_for_thread_stopped()
|
||||
|
|
@ -43,6 +48,4 @@ def test_thread_count(pyfile, run_as, start_method, count):
|
|||
assert len(resp_threads.body['threads']) == count
|
||||
|
||||
session.send_request('continue').wait_for_response()
|
||||
session.wait_for_next(Event('continued'))
|
||||
|
||||
session.wait_for_exit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue