Skip to content

DeprecationWarning: There is no current event loop #1056

Open
@kjeldflarup

Description

@kjeldflarup

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions