aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/qimage_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qimage_test.py')
-rw-r--r--sources/pyside6/tests/QtWidgets/qimage_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qimage_test.py b/sources/pyside6/tests/QtWidgets/qimage_test.py
index 216126df9..6d15d8c3e 100644
--- a/sources/pyside6/tests/QtWidgets/qimage_test.py
+++ b/sources/pyside6/tests/QtWidgets/qimage_test.py
@@ -282,7 +282,7 @@ class QImageTest(UsesQApplication):
'''Test if the QImage signatures receiving string buffers exist.'''
file = Path(__file__).resolve().parent / 'sample.png'
self.assertTrue(file.is_file())
- img0 = QImage(os.fspath(file))
+ img0 = QImage(file)
# btw let's test the bits() method
img1 = QImage(img0.bits(), img0.width(), img0.height(), img0.format())