slixtest: cleanup loop only if needed

if not, get_event_loop will throw, we can ignore this
This commit is contained in:
mathieui 2024-02-09 22:49:47 +01:00
parent 1c4bbbce8e
commit 2424a3b36f

View File

@ -755,5 +755,8 @@ class SlixTest(unittest.TestCase):
@atexit.register @atexit.register
def cleanup(): def cleanup():
loop = asyncio.get_event_loop() try:
loop.close() loop = asyncio.get_event_loop()
loop.close()
except:
pass