aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui')
-rw-r--r--tests/QtGui/qapp_test.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/QtGui/qapp_test.py b/tests/QtGui/qapp_test.py
index c371492e6..fd1d60fe4 100644
--- a/tests/QtGui/qapp_test.py
+++ b/tests/QtGui/qapp_test.py
@@ -3,15 +3,17 @@
import unittest
-from PySide import QtGui
+from PySide.QtGui import *
class QAppPresence(unittest.TestCase):
def testQApp(self):
#QtGui.qApp variable is instance of QApplication
- self.assert_(isinstance(QtGui.qApp, QtGui.QApplication))
+ self.assert_(isinstance(qApp, QApplication))
+def main():
+ app = QApplication([])
+ unittest.main()
if __name__ == '__main__':
- app = QtGui.QApplication([])
- unittest.main()
+ main()