aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/qqmlincubator_incubateWhile.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/qqmlincubator_incubateWhile.py')
-rw-r--r--sources/pyside6/tests/QtQml/qqmlincubator_incubateWhile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtQml/qqmlincubator_incubateWhile.py b/sources/pyside6/tests/QtQml/qqmlincubator_incubateWhile.py
index 519341b6a..11e666c08 100644
--- a/sources/pyside6/tests/QtQml/qqmlincubator_incubateWhile.py
+++ b/sources/pyside6/tests/QtQml/qqmlincubator_incubateWhile.py
@@ -45,6 +45,7 @@ from PySide6.QtGui import QGuiApplication
from PySide6.QtQml import QQmlIncubationController, VolatileBool
from PySide6.QtQuick import QQuickView
+
class CustomIncubationController(QObject, QQmlIncubationController):
def __init__(self, test):
QObject.__init__(self)
@@ -69,6 +70,7 @@ class CustomIncubationController(QObject, QQmlIncubationController):
# Incubate items for 2000 milliseconds, or until the volatile bool is set to false.
self.incubateWhile(self.incubationShouldContinue, 2000)
+
class TestBug(unittest.TestCase):
def testIncubateWhileCall(self):
app = QGuiApplication(sys.argv)
@@ -101,5 +103,6 @@ class TestBug(unittest.TestCase):
del view
del app
+
if __name__ == '__main__':
unittest.main()