Do child decode on `do_ctlc` exit?

signint_saviour
Tyler Goodlet 2022-07-12 17:34:06 -04:00
parent adbebd3f06
commit 6bdcbdb96f
1 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,7 @@ from typing import Optional
import pytest import pytest
import pexpect import pexpect
from conftest import repodir, _ci_env from conftest import repodir
# TODO: The next great debugger audit could be done by you! # TODO: The next great debugger audit could be done by you!
# - recurrent entry to breakpoint() from single actor *after* and an # - recurrent entry to breakpoint() from single actor *after* and an
@ -171,12 +170,13 @@ def do_ctlc(
time.sleep(delay) time.sleep(delay)
child.expect(r"\(Pdb\+\+\)") child.expect(r"\(Pdb\+\+\)")
time.sleep(delay) time.sleep(delay)
before = str(child.before.decode())
if patt: if patt:
# should see the last line on console # should see the last line on console
assert patt in before assert patt in before
before = str(child.before.decode())
def test_root_actor_bp_forever( def test_root_actor_bp_forever(
spawn, spawn,