Adjust `asyncio` test for stricter ctx-self-cancels

Use `expect_ctx()` around the portal cancellation case, toss in
a `'context'` parametrization and return just the `Context.outcome` from
`main()` B)
Tyler Goodlet 2024-03-07 21:33:07 -05:00
parent fe24807fca
commit 50f99456e0
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@ from tractor import (
from tractor.trionics import BroadcastReceiver
from tractor._testing import expect_ctxc
from conftest import expect_ctxc
async def sleep_and_err(
sleep_for: float = 0.1,