diff options
Diffstat (limited to 'sources/pyside6/tests/QtQml/bug_456.py')
-rw-r--r-- | sources/pyside6/tests/QtQml/bug_456.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtQml/bug_456.py b/sources/pyside6/tests/QtQml/bug_456.py index 8a5c54478..17028a902 100644 --- a/sources/pyside6/tests/QtQml/bug_456.py +++ b/sources/pyside6/tests/QtQml/bug_456.py @@ -35,7 +35,7 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(False) -from helper.helper import adjust_filename +from helper.helper import quickview_errorstring from helper.timedqapplication import TimedQApplication from PySide6 import QtCore, QtGui, QtQuick @@ -67,8 +67,11 @@ class TestConnectionWithInvalidSignature(TimedQApplication): context = view.rootContext() context.setContextProperty("rotatevalue", rotatevalue) - view.setSource(QtCore.QUrl.fromLocalFile(adjust_filename('bug_456.qml', __file__))) + file = Path(__file__).resolve().parent / 'bug_456.qml' + self.assertTrue(file.is_file()) + view.setSource(QtCore.QUrl.fromLocalFile(os.fspath(file))) root = view.rootObject() + self.assertTrue(root, quickview_errorstring(view)) button = root.findChild(QtCore.QObject, "buttonMouseArea") view.show() button.entered.emit() |