From a1f7ce0725268b7452a30c49a00a8f20f4988d98 Mon Sep 17 00:00:00 2001 From: goodboy Date: Wed, 13 May 2026 11:20:17 -0400 Subject: [PATCH] Fix `is_forking_spawner` fixture to call helper fn (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code (cherry picked from commit 83b6a3373ae621a30fe03c34d0cff52b069cbfc8) --- tractor/_testing/pytest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tractor/_testing/pytest.py b/tractor/_testing/pytest.py index 1c5fc4d2..37fc211e 100644 --- a/tractor/_testing/pytest.py +++ b/tractor/_testing/pytest.py @@ -851,6 +851,7 @@ def pytest_generate_tests( # scope='module', # ) + def _is_forking_spawner( start_method: str, ) -> bool: @@ -868,7 +869,7 @@ def is_forking_spawner( Is the `pytest` run using a `fork()`ing process spawning-backend? ''' - return _is_forking_spawner + return _is_forking_spawner(start_method) def maybe_xfail_for_spawner(