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
|
|
@ -55,6 +55,11 @@ from tests.interaction.transports import StreamingASGITransport
|
|||
pytestmark = pytest.mark.anyio
|
||||
|
||||
|
||||
@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_single_exchange_dispatch_context_has_no_back_channel() -> None:
|
||||
"""The per-request dispatch context refuses server-initiated requests; without an SSE sink,
|
||||
notify/progress are no-ops."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue