##// END OF EJS Templates
TST: QApplication doesn't quit early enough with PySide....
Puneeth Chaganti -
Show More
@@ -14,7 +14,9 b' class TestConsoleWidget(unittest.TestCase):'
14 14 def setUpClass(cls):
15 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 20 cls._app.setQuitOnLastWindowClosed(False)
19 21
20 22 @classmethod
@@ -14,7 +14,9 b' class TestKillRing(unittest.TestCase):'
14 14 def setUpClass(cls):
15 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 20 cls._app.setQuitOnLastWindowClosed(False)
19 21
20 22 @classmethod
General Comments 0
You need to be logged in to leave comments. Login now