filmkorn / pyanova-nano

Control the Anova Nano via BLE.
Apache License 2.0
3 stars 0 forks source link

Fix pytest-asyncio deprecation warning #1

Closed filmkorn closed 1 month ago

filmkorn commented 10 months ago

The tests re-use the same client-device connection through all test which caused me to override the event_loop fixture to scope it to session. This raises the following warnings:

DeprecationWarning: pytest-asyncio detected an unclosed event loop when tearing down the event_loop DeprecationWarning: The event_loop fixture provided by pytest-asyncio has been redefined in \pyanova-nano\pyanova_nano\tests\conftest.py:6 Replacing the event_loop fixture with a custom implementation is deprecated and will lead to errors in the future.

filmkorn commented 1 month ago

Closing - this has been fixed in the meantime.