Enable asyncio debug mode in tests (#100197)
This commit is contained in:
parent
83ef5450e9
commit
6e6680dc4d
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue