Show More
@@ -14,7 +14,9 b' class TestConsoleWidget(unittest.TestCase):' | |||||
14 | def setUpClass(cls): |
|
14 | def setUpClass(cls): | |
15 | """ Create the application for the test case. |
|
15 | """ Create the application for the test case. | |
16 | """ |
|
16 | """ | |
17 |
cls._app = QtGui.QApplication( |
|
17 | cls._app = QtGui.QApplication.instance() | |
|
18 | if cls._app is None: | |||
|
19 | cls._app = QtGui.QApplication([]) | |||
18 | cls._app.setQuitOnLastWindowClosed(False) |
|
20 | cls._app.setQuitOnLastWindowClosed(False) | |
19 |
|
21 | |||
20 | @classmethod |
|
22 | @classmethod |
@@ -14,7 +14,9 b' class TestKillRing(unittest.TestCase):' | |||||
14 | def setUpClass(cls): |
|
14 | def setUpClass(cls): | |
15 | """ Create the application for the test case. |
|
15 | """ Create the application for the test case. | |
16 | """ |
|
16 | """ | |
17 |
cls._app = QtGui.QApplication( |
|
17 | cls._app = QtGui.QApplication.instance() | |
|
18 | if cls._app is None: | |||
|
19 | cls._app = QtGui.QApplication([]) | |||
18 | cls._app.setQuitOnLastWindowClosed(False) |
|
20 | cls._app.setQuitOnLastWindowClosed(False) | |
19 |
|
21 | |||
20 | @classmethod |
|
22 | @classmethod |
General Comments 0
You need to be logged in to leave comments.
Login now