aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui
diff options
context:
space:
mode:
authorLuciano Wolf <luciano.wolf@openbossa.org>2010-07-07 13:52:55 -0300
committerLuciano Wolf <luciano.wolf@openbossa.org>2010-07-07 14:03:31 -0300
commitc737f90c1ddbe19cbbe93cb3915e14df59f97444 (patch)
treed0b49e2a81b3b38b96503c3cd2dac7622f3a3675 /tests/QtGui
parent154831efcf8d07932389ef8149c397357a0939b4 (diff)
Fix qApp macro implementation.
Reviewer: Renato Araújo <renato.filho@openbossa.org> Hugo Lima <hugo.lima@openbossa.org>
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()