bluesky/ophyd

v2: Only pass tasks to asyncio.wait() for python 3.11

Closed this issue · 1 comments

This was found in a CI test, and I figured it'd be a good idea to remove asyncio.wait() usage.

ophyd/v2/tests/test_ca.py::test_non_existant_errors
  /home/runner/work/ophyd/ophyd/ophyd/v2/tests/test_ca.py:178: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.

The file referred to in this error no longer exists, and at a glance it seems like asyncio.wait is never being used in ophyd/v2 on objects that aren't asyncio.Tasks.

Therefore I'm closing this issue.