diff options
author | Christian Tismer <[email protected]> | 2021-07-01 15:05:38 +0200 |
---|---|---|
committer | Christian Tismer <[email protected]> | 2021-07-02 08:09:58 +0200 |
commit | e2a3fa037b8133d857b34ddcecf1afe156095a4f (patch) | |
tree | 4752e8f7d4f3c13873a838f2143be988c2574e4a /sources/pyside6/tests/QtQml/bug_814.py | |
parent | ddf15e3cd1a6faeb1f98a9e2452e736cf629eec2 (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 <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtQml/bug_814.py')
-rw-r--r-- | sources/pyside6/tests/QtQml/bug_814.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/bug_814.py b/sources/pyside6/tests/QtQml/bug_814.py index 9b5ac7af0..05cd440f1 100644 --- a/sources/pyside6/tests/QtQml/bug_814.py +++ b/sources/pyside6/tests/QtQml/bug_814.py @@ -76,7 +76,7 @@ class TestBug814(TimedQApplication): view.rootContext().setContextProperty("pythonModel", model) file = Path(__file__).resolve().parent / 'bug_814.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)) view.show() |