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
subint_forkserver_backend
Gud Boi 2026-05-13 11:20:17 -04:00
parent 9bbb6f796b
commit 83b6a3373a
1 changed files with 2 additions and 1 deletions

View File

@ -653,6 +653,7 @@ def pytest_generate_tests(
# scope='module', # scope='module',
# ) # )
def _is_forking_spawner( def _is_forking_spawner(
start_method: str, start_method: str,
) -> bool: ) -> bool:
@ -670,7 +671,7 @@ def is_forking_spawner(
Is the `pytest` run using a `fork()`ing process spawning-backend? 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( def maybe_xfail_for_spawner(