Share one event loop per test module to stop Windows socketpair churn (#3070)

This commit is contained in:
Max 2026-07-07 13:19:04 +01:00 • committed by GitHub
commit 867bba6263
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,11 @@ pytestmark = [
]
@pytest.fixture(autouse=True)
def _module_runner_lease() -> None:
"""Opt out of the shared per-module event loop: this module parametrizes `anyio_backend`."""
async def test_a_gracefully_exited_servers_child_is_reaped_when_the_job_handle_closes( # pragma: no cover
tmp_path: Path,
spawned_processes: list[anyio.abc.Process | FallbackProcess],