diff options
Diffstat (limited to 'sources/pyside6/tests')
| -rw-r--r-- | sources/pyside6/tests/QtUiTools/bug_1060.py | 2 | ||||
| -rw-r--r-- | sources/pyside6/tests/QtUiTools/bug_797.py | 2 | ||||
| -rw-r--r-- | sources/pyside6/tests/QtUiTools/bug_909.py | 2 | ||||
| -rw-r--r-- | sources/pyside6/tests/QtUiTools/bug_913.py | 2 | ||||
| -rw-r--r-- | sources/pyside6/tests/QtUiTools/bug_958.py | 2 | ||||
| -rw-r--r-- | sources/pyside6/tests/QtUiTools/bug_965.py | 2 | ||||
| -rw-r--r-- | sources/pyside6/tests/QtWidgets/qimage_test.py | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/sources/pyside6/tests/QtUiTools/bug_1060.py b/sources/pyside6/tests/QtUiTools/bug_1060.py index db201f40a..106f7e515 100644 --- a/sources/pyside6/tests/QtUiTools/bug_1060.py +++ b/sources/pyside6/tests/QtUiTools/bug_1060.py @@ -53,5 +53,5 @@ if __name__ == "__main__": file = Path(__file__).resolve().parent / 'bug_1060.ui' assert(file.is_file()) - ui = MyQUiLoader().load(os.fspath(file)) + ui = MyQUiLoader().load(file) ui.show() diff --git a/sources/pyside6/tests/QtUiTools/bug_797.py b/sources/pyside6/tests/QtUiTools/bug_797.py index ac9ec2dcc..1185302e2 100644 --- a/sources/pyside6/tests/QtUiTools/bug_797.py +++ b/sources/pyside6/tests/QtUiTools/bug_797.py @@ -44,7 +44,7 @@ app = QApplication([]) loader = QUiLoader() file = Path(__file__).resolve().parent / 'bug_552.ui' assert(file.is_file()) -file = QFile(os.fspath(file)) +file = QFile(file) w = QWidget() # An exception can't be thrown mainWindow = loader.load(file, w) diff --git a/sources/pyside6/tests/QtUiTools/bug_909.py b/sources/pyside6/tests/QtUiTools/bug_909.py index 96e1d1fa8..99c80aa09 100644 --- a/sources/pyside6/tests/QtUiTools/bug_909.py +++ b/sources/pyside6/tests/QtUiTools/bug_909.py @@ -46,7 +46,7 @@ class TestDestruction(UsesQApplication): def testBug909(self): file = Path(__file__).resolve().parent / 'bug_909.ui' self.assertTrue(file.is_file()) - fileName = QFile(os.fspath(file)) + fileName = QFile(file) loader = QUiLoader() main_win = loader.load(fileName) self.assertEqual(sys.getrefcount(main_win), 2) diff --git a/sources/pyside6/tests/QtUiTools/bug_913.py b/sources/pyside6/tests/QtUiTools/bug_913.py index 9128969d8..f2ec3415f 100644 --- a/sources/pyside6/tests/QtUiTools/bug_913.py +++ b/sources/pyside6/tests/QtUiTools/bug_913.py @@ -50,7 +50,7 @@ class TestBug913 (unittest.TestCase): loader = QUiLoader() file = Path(__file__).resolve().parent / 'bug_913.ui' self.assertTrue(file.is_file()) - widget = loader.load(os.fspath(file)) + widget = loader.load(file) widget.tabWidget.currentIndex() # direct child is available as member widget.le_first.setText('foo') # child of QTabWidget must also be available! diff --git a/sources/pyside6/tests/QtUiTools/bug_958.py b/sources/pyside6/tests/QtUiTools/bug_958.py index d56424b7b..ddb6fc9ef 100644 --- a/sources/pyside6/tests/QtUiTools/bug_958.py +++ b/sources/pyside6/tests/QtUiTools/bug_958.py @@ -49,7 +49,7 @@ class Gui_Qt(QMainWindow): # this used to cause a segfault because the old inject code used to destroy the parent layout file = Path(__file__).resolve().parent / 'bug_958.ui' assert(file.is_file()) - self._cw = lLoader.load(os.fspath(file), self) + self._cw = lLoader.load(file, self) self.setCentralWidget(self._cw) diff --git a/sources/pyside6/tests/QtUiTools/bug_965.py b/sources/pyside6/tests/QtUiTools/bug_965.py index 92da3312a..be6984c4e 100644 --- a/sources/pyside6/tests/QtUiTools/bug_965.py +++ b/sources/pyside6/tests/QtUiTools/bug_965.py @@ -53,7 +53,7 @@ class BugTest(UsesQApplication): loader = MyQUiLoader() file = Path(__file__).resolve().parent / 'bug_965.ui' self.assertTrue(file.is_file()) - self.assertRaises(RuntimeError, loader.load, os.fspath(file)) + self.assertRaises(RuntimeError, loader.load, file) if __name__ == '__main__': 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()) |
