aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/javascript_exceptions.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-07-01 15:05:38 +0200
committerChristian Tismer <tismer@stackless.com>2021-07-02 08:09:58 +0200
commite2a3fa037b8133d857b34ddcecf1afe156095a4f (patch)
tree4752e8f7d4f3c13873a838f2143be988c2574e4a /sources/pyside6/tests/QtQml/javascript_exceptions.py
parentddf15e3cd1a6faeb1f98a9e2452e736cf629eec2 (diff)
pathlib: extend QUrl.fromFilePath to support os.PathLike
[ChangeLog][PySide6] The function QUrl.fromFilePath supports now the os.PathLike structure in addition to string arguments. The new interface was applied, everywhere. Change-Id: I2d888383c54b7f964e448d210264c7e902759f43 Pick-to: 6.1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
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))