blob: 3c3156a7aa7435247f83fa9c1a707b9bf5bb947a (
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 PySide2 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
|