aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/bug_951.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/bug_951.py')
-rw-r--r--sources/pyside6/tests/QtQml/bug_951.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/bug_951.py b/sources/pyside6/tests/QtQml/bug_951.py
index 3a121a0e6..75fc0b6eb 100644
--- a/sources/pyside6/tests/QtQml/bug_951.py
+++ b/sources/pyside6/tests/QtQml/bug_951.py
@@ -65,7 +65,7 @@ class TestRegisterQMLType(TimedQApplication):
view = QQuickView()
file = Path(__file__).resolve().parent / 'bug_951.qml'
self.assertTrue(file.is_file())
- view.setSource(QUrl.fromLocalFile(os.fspath(file)))
+ view.setSource(QUrl.fromLocalFile(file))
self.assertTrue(view.rootObject(), quickview_errorstring(view))
self.app.exec()