summaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_515.py
blob: c2bd9c73beb40758499443f0aac445173616bbcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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