Show More
@@ -14,6 +14,8 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.instance() | |||
|
18 | if cls._app is None: | |||
17 | cls._app = QtGui.QApplication([]) |
|
19 | cls._app = QtGui.QApplication([]) | |
18 | cls._app.setQuitOnLastWindowClosed(False) |
|
20 | cls._app.setQuitOnLastWindowClosed(False) | |
19 |
|
21 |
@@ -14,6 +14,8 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.instance() | |||
|
18 | if cls._app is None: | |||
17 | cls._app = QtGui.QApplication([]) |
|
19 | cls._app = QtGui.QApplication([]) | |
18 | cls._app.setQuitOnLastWindowClosed(False) |
|
20 | cls._app.setQuitOnLastWindowClosed(False) | |
19 |
|
21 |
General Comments 0
You need to be logged in to leave comments.
Login now