Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/test_ethernetport: create and set event loop for test
Calling asyncio.get_event_loop() with no current event loop is deprecated since Python 3.10 and will be an error in some future Python release [1]. SNMPEthernetPort expects a running event loop. So create and set one. [1] https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop Signed-off-by: Bastian Krause <[email protected]>
- Loading branch information