aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/bug_997.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/bug_997.py')
-rw-r--r--sources/pyside6/tests/QtQml/bug_997.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/bug_997.py b/sources/pyside6/tests/QtQml/bug_997.py
index 44c2a7ade..4ffb1d298 100644
--- a/sources/pyside6/tests/QtQml/bug_997.py
+++ b/sources/pyside6/tests/QtQml/bug_997.py
@@ -54,7 +54,7 @@ class TestBug(UsesQApplication):
ctxt.setContextProperty('owner', ownerData)
file = Path(__file__).resolve().parent / 'bug_997.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))
view.show()
QTimer.singleShot(1000, self.app.quit)