Skip to content

Commit 2cac292

Browse files
committed
Fix tests.
1 parent 6e5d18d commit 2cac292

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_app.py

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ def close():
3030
@pytest.mark.skipif(not is_pyqtgraph_available,
3131
reason='pyqtgraph is not available')
3232
def test_app():
33+
# main app will fail to start if there already is a reactor
34+
import sys
35+
if "twisted.internet.reactor" in sys.modules:
36+
sys.modules.pop("twisted.internet.reactor")
37+
3338
# Must close programatically
3439
Timer(10, lambda: deferred_call(close)).start()
3540
from inkcut.app import main

0 commit comments

Comments
 (0)