aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtQml/registertype.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-02-19 09:51:25 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-02-20 22:16:57 +0100
commitf69d163d17d3717c28f2c065173113756d7c50ef (patch)
treef8203180c87c919b228fed4f70d2a3a23b81246d /sources/pyside2/tests/QtQml/registertype.py
parentbc4d618d5f4c82c9a826a195043739c7e63ed138 (diff)
Pyside2/tests: Split the helper module
The classes of the helper module were defined in the __init__.py file with complicated logic to test for presence of the modules. Split the classes apart and empty the __init__.py file (still required for Python2). Change-Id: I4f4971f9a48e2961233da5585aa0df53bfbb9c7a Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/tests/QtQml/registertype.py')
-rw-r--r--sources/pyside2/tests/QtQml/registertype.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside2/tests/QtQml/registertype.py b/sources/pyside2/tests/QtQml/registertype.py
index 32d93830e..be15b87e8 100644
--- a/sources/pyside2/tests/QtQml/registertype.py
+++ b/sources/pyside2/tests/QtQml/registertype.py
@@ -32,7 +32,7 @@ import unittest
sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
-import helper
+from helper.helper import adjust_filename
from PySide2.QtCore import Property, QTimer, QUrl
from PySide2.QtGui import QGuiApplication, QPen, QColor, QPainter
@@ -110,7 +110,7 @@ class TestQmlSupport(unittest.TestCase):
qmlRegisterType(PieSlice, "Charts", 1, 0, "PieSlice");
view = QQuickView()
- view.setSource(QUrl.fromLocalFile(helper.adjust_filename('registertype.qml', __file__)))
+ view.setSource(QUrl.fromLocalFile(adjust_filename('registertype.qml', __file__)))
view.show()
QTimer.singleShot(250, view.close)
app.exec_()