Skip to content

Commit

Permalink
Enable asyncio debug mode in tests (home-assistant#100197)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Sep 12, 2023
1 parent 83ef545 commit 6e6680d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6e6680d

Please sign in to comment.