Skip to content

Commit 1d7b499

Browse files
committed
Clear the eventloop otherwise test resources get leaked
1 parent d181ad1 commit 1d7b499

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commands2/commandscheduler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ def resetInstance() -> None:
4343
Resets the scheduler instance, which is useful for testing purposes. This should not be
4444
called by user code.
4545
"""
46+
inst = CommandScheduler._instance
47+
if inst:
48+
inst._defaultButtonLoop.clear()
4649
CommandScheduler._instance = None
4750

4851
def __init__(self) -> None:

0 commit comments

Comments
 (0)