aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_515.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/bug_515.py')
-rw-r--r--tests/QtCore/bug_515.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/QtCore/bug_515.py b/tests/QtCore/bug_515.py
new file mode 100644
index 000000000..c2bd9c73b
--- /dev/null
+++ b/tests/QtCore/bug_515.py
@@ -0,0 +1,18 @@
+""" Unittest for bug #515 """
+""" http://bugs.openbossa.org/show_bug.cgi?id=515 """
+
+from PySide import QtCore
+
+callCleanup = False
+def _cleanup():
+ global callCleanup
+ callCleanup = True
+
+def _checkCleanup():
+ global callCleanup
+ assert(callCleanup)
+
+app = QtCore.QCoreApplication([])
+QtCore.qAddPostRoutine(_cleanup)
+QtCore.qAddPostRoutine(_checkCleanup)
+del app