From cf56f33be6586df191270a217c64e156b04e5b1b Mon Sep 17 00:00:00 2001 From: goodboy Date: Tue, 25 Aug 2026 23:08:00 -0400 Subject: [PATCH] Correct cancellation and asyncio test prose Fix five spelling errors in comments and failure text touched by the one-shot migration: one `propagate`, one `Daemon` and three `directly` corrections. Review: PR #484 (GitHub Copilot) https://github.com/goodboy/tractor/pull/484#pullrequestreview-5025348921 (this patch was generated in some part by `opencode` using `gpt-5.6-sol` (`openai`)) --- tests/test_cancellation.py | 4 ++-- tests/test_infected_asyncio.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_cancellation.py b/tests/test_cancellation.py index bf52816e..f026f133 100644 --- a/tests/test_cancellation.py +++ b/tests/test_cancellation.py @@ -436,7 +436,7 @@ async def test_some_cancels_all( except tractor.RemoteActorError as err: assert err.boxed_type == err_type - # we only expect this first error to propogate + # we only expect this first error to propagate # (all other daemons are cancelled before they # can be scheduled) num_actors = 1 @@ -445,7 +445,7 @@ async def test_some_cancels_all( else: if expect_error: pytest.fail( - "Deamon call should fail at checkpoint?") + "Daemon call should fail at checkpoint?") # should error here with a `RemoteActorError` or a beg of them diff --git a/tests/test_infected_asyncio.py b/tests/test_infected_asyncio.py index 933b243b..3e94021e 100644 --- a/tests/test_infected_asyncio.py +++ b/tests/test_infected_asyncio.py @@ -667,7 +667,7 @@ def test_basic_interloop_channel_stream( async with tractor.open_nursery( registry_addrs=[reg_addr], ) as an: - # should raise RAE diectly + # should raise RAE directly await to_actor.run( partial( stream_from_aio, @@ -726,7 +726,7 @@ def test_trio_closes_early_causes_aio_checkpoint_raise( # enable_stack_on_sig=True, registry_addrs=[reg_addr], ) as an: - # should raise RAE diectly + # should raise RAE directly print('waiting on final infected subactor result..') res: None = await to_actor.run( partial( @@ -779,7 +779,7 @@ def test_aio_exits_early_relays_AsyncioTaskExited( debug_mode=debug_mode, # enable_stack_on_sig=True, ) as an: - # should raise RAE diectly + # should raise RAE directly print('waiting on final infected subactor result..') res: None = await to_actor.run( partial(