Enable asyncio debug mode in tests (#100197)

This commit is contained in:
Erik Montnemery 2023-09-12 17:12:22 +02:00 committed by GitHub
parent 83ef5450e9
commit 6e6680dc4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,6 +318,12 @@ def long_repr_strings() -> Generator[None, None, None]:
arepr.maxother = original_maxother
@pytest.fixture(autouse=True)
def enable_event_loop_debug(event_loop: asyncio.AbstractEventLoop) -> None:
"""Enable event loop debug mode."""
event_loop.set_debug(True)
@pytest.fixture(autouse=True)
def verify_cleanup(
event_loop: asyncio.AbstractEventLoop,