Test: don't grab debug lock if not in mode

trionics
Tyler Goodlet 2021-10-25 10:22:41 -04:00
parent 925af28092
commit 083b73ad4a
1 changed files with 3 additions and 0 deletions

View File

@ -558,6 +558,9 @@ async def acquire_debug_lock(
Grab root's debug lock on entry, release on exit. Grab root's debug lock on entry, release on exit.
''' '''
if not debug_mode():
return
async with trio.open_nursery() as n: async with trio.open_nursery() as n:
cs = await n.start( cs = await n.start(
wait_for_parent_stdin_hijack, wait_for_parent_stdin_hijack,