Share one event loop per test module to stop Windows socketpair churn (#3070)
This commit is contained in:
parent
d287c9868f
commit
867bba6263
1 changed files with 60 additions and 3 deletions
|
|
@ -51,6 +51,11 @@ from .test_dispatcher import Recorder, echo_handlers, running_pair
|
|||
DCtx = DispatchContext[TransportContext]
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _module_runner_lease() -> None:
|
||||
"""Opt out of the shared per-module event loop: this module parametrizes `anyio_backend`."""
|
||||
|
||||
|
||||
class RecordingWriteStream:
|
||||
"""Records sends without a checkpoint, so a pending cancellation cannot interrupt the write or mask it."""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue