From c737f90c1ddbe19cbbe93cb3915e14df59f97444 Mon Sep 17 00:00:00 2001 From: Luciano Wolf Date: Wed, 7 Jul 2010 13:52:55 -0300 Subject: Fix qApp macro implementation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Renato Araújo Hugo Lima --- tests/QtGui/qapp_test.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/QtGui') 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() -- cgit v1.2.3