diff --git a/tests/test_advanced_faults.py b/tests/test_advanced_faults.py index 85bac93..de8a0e1 100644 --- a/tests/test_advanced_faults.py +++ b/tests/test_advanced_faults.py @@ -255,15 +255,16 @@ async def break_ipc_after_started( def test_stream_closed_right_after_ipc_break_and_zombie_lord_engages(): ''' - Verify that is a subactor's IPC goes down just after bringing up a stream - the parent can trigger a SIGINT and the child will be reaped out-of-IPC by - the localhost process supervision machinery: aka "zombie lord". + Verify that is a subactor's IPC goes down just after bringing up + a stream the parent can trigger a SIGINT and the child will be + reaped out-of-IPC by the localhost process supervision machinery: + aka "zombie lord". ''' async def main(): with trio.fail_after(3): - async with tractor.open_nursery() as n: - portal = await n.start_actor( + async with tractor.open_nursery() as an: + portal = await an.start_actor( 'ipc_breaker', enable_modules=[__name__], ) diff --git a/tests/test_discovery.py b/tests/test_discovery.py index 8d014ce..8745598 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -318,7 +318,9 @@ async def close_chans_before_nursery( async with portal2.open_stream_from( stream_forever ) as agen2: - async with trio.open_nursery() as n: + async with trio.open_nursery( + strict_exception_groups=False, + ) as n: n.start_soon(streamer, agen1) n.start_soon(cancel, use_signal, .5) try: