slixtest: cleanup loop only if needed
if not, get_event_loop will throw, we can ignore this
This commit is contained in:
parent
1c4bbbce8e
commit
2424a3b36f
@ -755,5 +755,8 @@ class SlixTest(unittest.TestCase):
|
||||
|
||||
@atexit.register
|
||||
def cleanup():
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.close()
|
||||
try:
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.close()
|
||||
except:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user