Skip to content

Commit

Permalink
Ensure we close the loop in test fixture
Browse files Browse the repository at this point in the history
This change should prevent `DeprecationWarning`s from pytest-asyncio
which currently closes unclosed event loop but will stop doing that in
future releases.
  • Loading branch information
pentschev committed Oct 11, 2023
1 parent f36cccd commit 7d8f9fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ def event_loop(scope="session"):
yield loop
ucp.reset()
loop.run_until_complete(asyncio.sleep(0))
loop.close()

0 comments on commit 7d8f9fd

Please sign in to comment.