aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/bug_451.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/bug_451.py')
-rw-r--r--sources/pyside6/tests/QtQml/bug_451.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/bug_451.py b/sources/pyside6/tests/QtQml/bug_451.py
index bfa2eb83e..3c7a95c7f 100644
--- a/sources/pyside6/tests/QtQml/bug_451.py
+++ b/sources/pyside6/tests/QtQml/bug_451.py
@@ -89,7 +89,7 @@ class TestBug(unittest.TestCase):
context.setContextProperty("python", obj)
file = Path(__file__).resolve().parent / 'bug_451.qml'
self.assertTrue(file.is_file())
- view.setSource(QUrl.fromLocalFile(os.fspath(file)))
+ view.setSource(QUrl.fromLocalFile(file))
root = view.rootObject()
self.assertTrue(root, quickview_errorstring(view))
root.simpleFunction()