From 79dda4cb4a01a14b264640bb1e8f509d699b9aa3 Mon Sep 17 00:00:00 2001 From: goodboy Date: Wed, 13 May 2026 20:43:22 -0400 Subject: [PATCH] Mk `test_no_runtime()` not require `pytest-trio` --- tests/test_local.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/test_local.py b/tests/test_local.py index 4e1e983b..12be5ace 100644 --- a/tests/test_local.py +++ b/tests/test_local.py @@ -10,18 +10,22 @@ import tractor from tractor._testing import tractor_test -@pytest.mark.trio -async def test_no_runtime(): - """A registrar must be established before any nurseries +def test_no_runtime(): + ''' + A registrar must be established before any nurseries can be created. (In other words ``tractor.open_root_actor()`` must be engaged at some point?) - """ - with pytest.raises(RuntimeError) : + + ''' + async def main(): async with tractor.find_actor('doggy'): pass + with pytest.raises(tractor._exceptions.NoRuntime) : + trio.run(main) + @tractor_test async def test_self_is_registered(reg_addr):