From 8f44efa327b38c602a2e8f45b23600d5453fbeda Mon Sep 17 00:00:00 2001 From: goodboy Date: Tue, 31 Mar 2026 01:23:25 -0400 Subject: [PATCH] Drop stale `.cancel()`, fix docstring typo in tests - Remove leftover `await an.cancel()` in `test_registered_custom_err_relayed`; the nursery already cancels on scope exit. - Fix `This document` -> `This documents` typo in `test_unregistered_err_still_relayed` docstring. Review: PR #426 (Copilot) https://github.com/goodboy/tractor/pull/426 (this patch was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- tests/test_reg_err_types.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_reg_err_types.py b/tests/test_reg_err_types.py index ab14ae5a..82de8d08 100644 --- a/tests/test_reg_err_types.py +++ b/tests/test_reg_err_types.py @@ -215,8 +215,6 @@ def test_registered_custom_err_relayed( ) raise - await an.cancel() - with pytest.raises(RemoteActorError) as excinfo: trio.run(main) @@ -281,7 +279,7 @@ def test_unregistered_err_still_relayed( `.boxed_type_str` and `.src_type_str` still report the original type name from the IPC msg. - This document the expected limitation: without `reg_err_types()` + This documents the expected limitation: without `reg_err_types()` the `.boxed_type` property can NOT resolve to the original Python type.