##// END OF EJS Templates
Merge pull request #1631 from punchagan/qapplication-exists-test-error...
Jonathan March -
r6577:9e4479b6 merge
parent child Browse files
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