Skip to content

Commit

Permalink
Ensure event loop is created in test_lock_workers
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Jan 18, 2023
1 parent f0cd366 commit b035e82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dask_cuda/tests/test_explicit_comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,12 @@ def test_lock_workers():
except ImportError as e:
pytest.skip(str(e))

# Avoids DeprecationWarning from `IOLoop()` due to no event loop getting created
# with `asyncio.get_event_loop()` in Python >= 3.10
# TODO: Switch to async cluster, simply switching the cluster is raising connection
# errors.
asyncio.new_event_loop()

with LocalCluster(
protocol="tcp",
dashboard_address=None,
Expand Down

0 comments on commit b035e82

Please sign in to comment.