You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an annoying warning at the end of my pytest session, when running on the latest master
test_setup/test_setup.py::test_setup_ip
/usr/local/lib/python3.10/dist-packages/labgrid/remote/client.py:1238: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
test_setup/test_setup.py::test_setup_ip
/usr/local/lib/python3.10/dist-packages/autobahn/asyncio/websocket.py:300: DeprecationWarning: There is no current event loop
self.loop = loop or asyncio.get_event_loop()
test_setup/test_setup.py::test_setup_ip
/usr/local/lib/python3.10/dist-packages/autobahn/asyncio/wamp.py:238: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
I tried to update autobahn to latest version, but the error stil exists. Anybody knows why this warning comes.
The text was updated successfully, but these errors were encountered:
The event loop has to be created and set explicitly now before asyncio.get_event_loop() is called. So to get rid of all these warnings, we need to make sure that this is the case. I guess that's the job of autobahn in most cases. In the client we probably need to do this ourselves, i.e. here.
I get an annoying warning at the end of my pytest session, when running on the latest master
I tried to update autobahn to latest version, but the error stil exists. Anybody knows why this warning comes.
The text was updated successfully, but these errors were encountered: