Handle repeat child tty-acquires race

ctx_debugger
Tyler Goodlet 2021-07-31 15:01:26 -04:00
parent 6006adc0de
commit f173012fea
1 changed files with 6 additions and 1 deletions

View File

@ -497,7 +497,12 @@ def test_root_nursery_cancels_before_child_releases_tty_lock(
child.sendline('c')
while True:
try:
child.expect(pexpect.EOF)
break
except pexpect.exceptions.TIMEOUT:
print('child was ablel to grab tty lock again?')
if not timed_out_early: