aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/javascript_exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/javascript_exceptions.py')
-rw-r--r--sources/pyside6/tests/QtQml/javascript_exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/javascript_exceptions.py b/sources/pyside6/tests/QtQml/javascript_exceptions.py
index 7bb3aa43f..fe2518487 100644
--- a/sources/pyside6/tests/QtQml/javascript_exceptions.py
+++ b/sources/pyside6/tests/QtQml/javascript_exceptions.py
@@ -103,7 +103,7 @@ class JavaScriptExceptionsTest(UsesQApplication):
view = QQuickView()
file = Path(__file__).resolve().parent / 'javascript_exceptions.qml'
self.assertTrue(file.is_file())
- qml_url = QUrl.fromLocalFile(os.fspath(file))
+ qml_url = QUrl.fromLocalFile(file)
view.setSource(qml_url)
self.assertTrue(view.rootObject(), quickview_errorstring(view))