Skip to content

Commit 99a71bc

Browse files
Fix unclosed event loop warning in test
Previously, we were unnecessarily setting the solipsism event loop as the default one and resulted in a test warning due to unclosed event loops. Signed-off-by: Daniel Zullo <[email protected]>
1 parent fa0d3fb commit 99a71bc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/microgrid/test_datapipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
def event_loop() -> Iterator[async_solipsism.EventLoop]:
2424
"""Replace the loop with one that doesn't interact with the outside world."""
2525
loop = async_solipsism.EventLoop()
26-
asyncio.set_event_loop(loop) # Set the loop as default
2726
yield loop
2827
loop.close()
2928

0 commit comments

Comments
 (0)