aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtgui/qapplication_singleton_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtgui/qapplication_singleton_test.py')
-rw-r--r--tests/qtgui/qapplication_singleton_test.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/qtgui/qapplication_singleton_test.py b/tests/qtgui/qapplication_singleton_test.py
new file mode 100644
index 000000000..9c959f9d4
--- /dev/null
+++ b/tests/qtgui/qapplication_singleton_test.py
@@ -0,0 +1,12 @@
+
+import unittest
+
+from PySide.QtGui import QApplication
+
+class TestSingleton(unittest.TestCase):
+ def testBasic(self):
+ a = QApplication([])
+ self.assertRaises(RuntimeError, QApplication, [])
+
+if __name__ == '__main__':
+ unittest.main()