Try disabling prompt expect in ctrlc cases

signint_saviour
Tyler Goodlet 2022-07-28 09:00:41 -04:00
parent 808d7ae2c6
commit cb0c47c42a
1 changed files with 6 additions and 5 deletions

View File

@ -167,10 +167,9 @@ def do_ctlc(
delay: float = 0.1, delay: float = 0.1,
patt: Optional[str] = None, patt: Optional[str] = None,
# XXX: literally no idea why this is an issue in CI # XXX: literally no idea why this is an issue in CI but likely will
# but likely will flush out (hopefully) with proper 3.10 # flush out (hopefully) with proper 3.10 release of `pdbpp`...
# release of `pdbpp`... expect_prompt: bool = False,
expect_prompt: bool = True,
) -> None: ) -> None:
@ -179,7 +178,7 @@ def do_ctlc(
time.sleep(delay) time.sleep(delay)
child.sendcontrol('c') child.sendcontrol('c')
before = str(child.before.decode()) # before = str(child.before.decode())
# TODO: figure out why this makes CI fail.. # TODO: figure out why this makes CI fail..
# if you run this test manually it works just fine.. # if you run this test manually it works just fine..
@ -256,6 +255,7 @@ def test_subactor_error(
child, child,
) )
child.expect(r"\(Pdb\+\+\)")
# send user command and (in this case it's the same for 'continue' # send user command and (in this case it's the same for 'continue'
# vs. 'quit') the debugger should enter a second time in the nursery # vs. 'quit') the debugger should enter a second time in the nursery
# creating actor # creating actor
@ -578,6 +578,7 @@ def test_multi_subactors_root_errors(
if ctlc: if ctlc:
do_ctlc(child) do_ctlc(child)
child.expect(r"\(Pdb\+\+\)")
child.sendline('c') child.sendline('c')
child.expect(r"\(Pdb\+\+\)") child.expect(r"\(Pdb\+\+\)")