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 f66295a258
commit bf0ac16447
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.trionics import BroadcastReceiver
from tractor._testing import expect_ctxc from tractor._testing import expect_ctxc
from conftest import expect_ctxc
async def sleep_and_err( async def sleep_and_err(
sleep_for: float = 0.1, sleep_for: float = 0.1,