aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/qquickitem_grabToImage.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/qquickitem_grabToImage.py')
-rw-r--r--sources/pyside6/tests/QtQml/qquickitem_grabToImage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/qquickitem_grabToImage.py b/sources/pyside6/tests/QtQml/qquickitem_grabToImage.py
index df88f6d99..17b01620b 100644
--- a/sources/pyside6/tests/QtQml/qquickitem_grabToImage.py
+++ b/sources/pyside6/tests/QtQml/qquickitem_grabToImage.py
@@ -50,7 +50,7 @@ class TestGrabToSharedPointerImage(TimedQApplication):
view = QQuickView()
file = Path(__file__).resolve().parent / 'qquickitem_grabToImage.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()