forked from goodboy/tractor
Do child decode on `do_ctlc` exit?
parent
d971e9bc9d
commit
b659326d5b
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue