We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af91af commit b0e8ef7Copy full SHA for b0e8ef7
tests/app_test.py
@@ -1,11 +1,12 @@
1
from qtpy import QtWidgets
2
from qtpy.QtCore import Qt, QTimer
3
import unittest
4
+import faulthandler
5
from mock import patch
6
from mslice.app.mainwindow import MainWindow
7
from mslice.plotting.globalfiguremanager import GlobalFigureManager
8
-qapp = QtWidgets.QApplication.instance()
9
+qapp = None
10
11
12
class AppTests(unittest.TestCase):
@@ -15,6 +16,7 @@ def setUp(self):
15
16
qapp = QtWidgets.QApplication([" "])
17
18
def tearDown(self):
19
+ faulthandler.enable()
20
GlobalFigureManager.destroy_all()
21
22
# Required to sendPostedEvents twice to ensure the MainWindow is deleted
0 commit comments