diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets')
24 files changed, 27 insertions, 27 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_1006.py b/sources/pyside6/tests/QtWidgets/bug_1006.py index 7aaff11c1..9a1b7e653 100644 --- a/sources/pyside6/tests/QtWidgets/bug_1006.py +++ b/sources/pyside6/tests/QtWidgets/bug_1006.py @@ -76,7 +76,7 @@ class TestBug1006 (TimedQApplication): window = LabelWindow(None) window.replace(self) self.assertTrue(window._destroyCalled) - self.app.exec_() + self.app.exec() def testParentLayout(self): def createLayout(): diff --git a/sources/pyside6/tests/QtWidgets/bug_667.py b/sources/pyside6/tests/QtWidgets/bug_667.py index 42f9dade3..03f125c6a 100644 --- a/sources/pyside6/tests/QtWidgets/bug_667.py +++ b/sources/pyside6/tests/QtWidgets/bug_667.py @@ -59,4 +59,4 @@ if __name__ == "__main__": w.show() w.raise_() QTimer.singleShot(0, w.close) - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/sources/pyside6/tests/QtWidgets/bug_750.py b/sources/pyside6/tests/QtWidgets/bug_750.py index 111204bf9..08327a0d0 100644 --- a/sources/pyside6/tests/QtWidgets/bug_750.py +++ b/sources/pyside6/tests/QtWidgets/bug_750.py @@ -55,7 +55,7 @@ class TestQPainter(UsesQApplication): w._app = self.app w._info = None QTimer.singleShot(300, w.show) - self.app.exec_() + self.app.exec() self.assertTrue(w._info) diff --git a/sources/pyside6/tests/QtWidgets/bug_793.py b/sources/pyside6/tests/QtWidgets/bug_793.py index 40e3f85da..2a87a8750 100644 --- a/sources/pyside6/tests/QtWidgets/bug_793.py +++ b/sources/pyside6/tests/QtWidgets/bug_793.py @@ -67,4 +67,4 @@ class TestQApplicationDestrcutor(unittest.TestCase): if __name__ == '__main__': app = QApplication(sys.argv) unittest.main() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/sources/pyside6/tests/QtWidgets/bug_836.py b/sources/pyside6/tests/QtWidgets/bug_836.py index fe381a570..7df90e7a7 100644 --- a/sources/pyside6/tests/QtWidgets/bug_836.py +++ b/sources/pyside6/tests/QtWidgets/bug_836.py @@ -62,7 +62,7 @@ def main(): w = MainWindow() w.show() QTimer.singleShot(0, w.close) - app.exec_() + app.exec() if __name__ == "__main__": diff --git a/sources/pyside6/tests/QtWidgets/bug_879.py b/sources/pyside6/tests/QtWidgets/bug_879.py index 8a7b4b184..435cc4190 100644 --- a/sources/pyside6/tests/QtWidgets/bug_879.py +++ b/sources/pyside6/tests/QtWidgets/bug_879.py @@ -55,7 +55,7 @@ class TestBug879 (unittest.TestCase): QTimer.singleShot(0, self.sendKbdEvent) QTimer.singleShot(100, app.quit) - app.exec_() + app.exec() self.assertEqual(self.box.text(), '0') diff --git a/sources/pyside6/tests/QtWidgets/bug_919.py b/sources/pyside6/tests/QtWidgets/bug_919.py index f4d5311fd..1ca2c220b 100644 --- a/sources/pyside6/tests/QtWidgets/bug_919.py +++ b/sources/pyside6/tests/QtWidgets/bug_919.py @@ -68,7 +68,7 @@ class TestBug919(TimedQApplication): w = MyWidget() w.paintReceived.connect(self.app.quit) w.show() - self.app.exec_() + self.app.exec() self.assertTrue(w._painted) diff --git a/sources/pyside6/tests/QtWidgets/bug_921.py b/sources/pyside6/tests/QtWidgets/bug_921.py index d27ce774d..35752e273 100644 --- a/sources/pyside6/tests/QtWidgets/bug_921.py +++ b/sources/pyside6/tests/QtWidgets/bug_921.py @@ -78,7 +78,7 @@ class TestTimedApp(TimedQApplication): s.s3.connect(internalFunction) midleFunction() - self.app.exec_() + self.app.exec() del w s.s1.emit() diff --git a/sources/pyside6/tests/QtWidgets/bug_972.py b/sources/pyside6/tests/QtWidgets/bug_972.py index 24f892f19..fe6662ee9 100644 --- a/sources/pyside6/tests/QtWidgets/bug_972.py +++ b/sources/pyside6/tests/QtWidgets/bug_972.py @@ -70,7 +70,7 @@ class TestBug972 (TimedQApplication): view = QGraphicsView(scene) view.show() - self.app.exec_() + self.app.exec() if __name__ == "__main__": diff --git a/sources/pyside6/tests/QtWidgets/customproxywidget_test.py b/sources/pyside6/tests/QtWidgets/customproxywidget_test.py index db4da7884..1e7351dc3 100644 --- a/sources/pyside6/tests/QtWidgets/customproxywidget_test.py +++ b/sources/pyside6/tests/QtWidgets/customproxywidget_test.py @@ -64,7 +64,7 @@ class CustomProxyWidgetTest(UsesQApplication): view.show() timer = QTimer.singleShot(100, self.app.quit) - self.app.exec_() + self.app.exec() if __name__ == '__main__': diff --git a/sources/pyside6/tests/QtWidgets/paint_event_test.py b/sources/pyside6/tests/QtWidgets/paint_event_test.py index 48d999901..66dd3d084 100644 --- a/sources/pyside6/tests/QtWidgets/paint_event_test.py +++ b/sources/pyside6/tests/QtWidgets/paint_event_test.py @@ -94,7 +94,7 @@ class PaintEventOverride(UsesQApplication): # Test QWidget.paintEvent override timer_id = self.widget.startTimer(100) self.widget.show() - self.app.exec_() + self.app.exec() self.widget.killTimer(timer_id) diff --git a/sources/pyside6/tests/QtWidgets/qabstracttextdocumentlayout_test.py b/sources/pyside6/tests/QtWidgets/qabstracttextdocumentlayout_test.py index b6d443bdb..7d4f5c786 100644 --- a/sources/pyside6/tests/QtWidgets/qabstracttextdocumentlayout_test.py +++ b/sources/pyside6/tests/QtWidgets/qabstracttextdocumentlayout_test.py @@ -74,7 +74,7 @@ class QAbstractTextDocumentLayoutTest(UsesQApplication): self.textEdit.document().documentLayout().registerHandler(QAbstractTextDocumentLayoutTest.objectType, interface) QTimer.singleShot(0, self.foo) - self.app.exec_() + self.app.exec() self.assertTrue(Foo.called) diff --git a/sources/pyside6/tests/QtWidgets/qgraphicsproxywidget_test.py b/sources/pyside6/tests/QtWidgets/qgraphicsproxywidget_test.py index ef78f83f7..63ac4d791 100644 --- a/sources/pyside6/tests/QtWidgets/qgraphicsproxywidget_test.py +++ b/sources/pyside6/tests/QtWidgets/qgraphicsproxywidget_test.py @@ -59,7 +59,7 @@ class QGraphicsProxyWidgetTest(UsesQApplication): view.show() timer = QTimer.singleShot(100, self.app.quit) - self.app.exec_() + self.app.exec() if __name__ == '__main__': diff --git a/sources/pyside6/tests/QtWidgets/qkeysequenceedit_test.py b/sources/pyside6/tests/QtWidgets/qkeysequenceedit_test.py index cd629430f..789607231 100644 --- a/sources/pyside6/tests/QtWidgets/qkeysequenceedit_test.py +++ b/sources/pyside6/tests/QtWidgets/qkeysequenceedit_test.py @@ -48,7 +48,7 @@ class QKeySequenceEditTest(UsesQApplication): keySequenceEdit = QKeySequenceEdit() keySequenceEdit.show() QTimer.singleShot(0, keySequenceEdit.close) - self.app.exec_() + self.app.exec() print(keySequenceEdit.keySequence()) diff --git a/sources/pyside6/tests/QtWidgets/qlayout_test.py b/sources/pyside6/tests/QtWidgets/qlayout_test.py index fa5e53e4f..4230470b7 100644 --- a/sources/pyside6/tests/QtWidgets/qlayout_test.py +++ b/sources/pyside6/tests/QtWidgets/qlayout_test.py @@ -141,7 +141,7 @@ class QLayoutTest(UsesQApplication): w.setLayout(formLayout) w.show() QTimer.singleShot(10, w.close) - self.app.exec_() + self.app.exec() del w self.assertRaises(RuntimeError, spacer.isEmpty) diff --git a/sources/pyside6/tests/QtWidgets/qlistwidget_test.py b/sources/pyside6/tests/QtWidgets/qlistwidget_test.py index 64fc2f181..3746d3675 100644 --- a/sources/pyside6/tests/QtWidgets/qlistwidget_test.py +++ b/sources/pyside6/tests/QtWidgets/qlistwidget_test.py @@ -83,7 +83,7 @@ class QListWidgetTest(UsesQApplication): lst.addItem(QListWidgetItem("foo")) QTimer.singleShot(0, slot) QTimer.singleShot(0, lst.close) - self.app.exec_() + self.app.exec() self.assertEqual(lst.count(), 1) def testClear(self): diff --git a/sources/pyside6/tests/QtWidgets/qmainwindow_test.py b/sources/pyside6/tests/QtWidgets/qmainwindow_test.py index 017ffbbd0..5d6018b28 100644 --- a/sources/pyside6/tests/QtWidgets/qmainwindow_test.py +++ b/sources/pyside6/tests/QtWidgets/qmainwindow_test.py @@ -68,7 +68,7 @@ class TestMainWindow(UsesQApplication): w = MainWindow() w.show() QTimer.singleShot(1000, self.app.quit) - self.app.exec_() + self.app.exec() def objDel(self, obj): self.app.quit() @@ -82,7 +82,7 @@ class TestMainWindow(UsesQApplication): wr = weakref.ref(c, self.objDel) w.setCentralWidget(None) c = None - self.app.exec_() + self.app.exec() def testRefCountToAnother(self): w = QMainWindow() @@ -99,7 +99,7 @@ class TestMainWindow(UsesQApplication): w.setCentralWidget(None) c = None - self.app.exec_() + self.app.exec() def testSignalDisconect(self): w = QMainWindow() diff --git a/sources/pyside6/tests/QtWidgets/qpen_test.py b/sources/pyside6/tests/QtWidgets/qpen_test.py index 2707fc931..c06102e1c 100644 --- a/sources/pyside6/tests/QtWidgets/qpen_test.py +++ b/sources/pyside6/tests/QtWidgets/qpen_test.py @@ -71,7 +71,7 @@ class QPenTest(UsesQApplication): w = Painting() w.show() QTimer.singleShot(1000, self.app.quit) - self.app.exec_() + self.app.exec() self.assertEqual(w.penFromEnum.style(), Qt.NoPen) self.assertEqual(w.penFromInteger.style(), Qt.SolidLine) diff --git a/sources/pyside6/tests/QtWidgets/qpicture_test.py b/sources/pyside6/tests/QtWidgets/qpicture_test.py index 06364e4be..9e1479dd8 100644 --- a/sources/pyside6/tests/QtWidgets/qpicture_test.py +++ b/sources/pyside6/tests/QtWidgets/qpicture_test.py @@ -67,7 +67,7 @@ class QPictureTest(UsesQApplication): w._app = self.app QTimer.singleShot(300, w.show) - self.app.exec_() + self.app.exec() if __name__ == '__main__': diff --git a/sources/pyside6/tests/QtWidgets/qpushbutton_test.py b/sources/pyside6/tests/QtWidgets/qpushbutton_test.py index 78cfe75da..3b23e1b9c 100644 --- a/sources/pyside6/tests/QtWidgets/qpushbutton_test.py +++ b/sources/pyside6/tests/QtWidgets/qpushbutton_test.py @@ -59,7 +59,7 @@ class QPushButtonTest(UsesQApplication): w.show() timer = QTimer.singleShot(100, self.app.quit) - self.app.exec_() + self.app.exec() def buttonCb(self, checked): self._clicked = True diff --git a/sources/pyside6/tests/QtWidgets/qshortcut_test.py b/sources/pyside6/tests/QtWidgets/qshortcut_test.py index 392f9dff6..b9bed5a72 100644 --- a/sources/pyside6/tests/QtWidgets/qshortcut_test.py +++ b/sources/pyside6/tests/QtWidgets/qshortcut_test.py @@ -74,7 +74,7 @@ class QAppPresence(unittest.TestCase): self.sc = MyShortcut(QKeySequence(Qt.Key_Return), f, f.slot_of_foo) self.scstd = MyShortcut(QKeySequence.Copy, f, f.slot_of_copy) QTimer.singleShot(0, self.init) - self.qapp.exec_() + self.qapp.exec() self.assertEqual(f.ok, True) self.assertEqual(f.copy, True) diff --git a/sources/pyside6/tests/QtWidgets/qtreewidgetitem_test.py b/sources/pyside6/tests/QtWidgets/qtreewidgetitem_test.py index ebd49012e..d9813b23a 100644 --- a/sources/pyside6/tests/QtWidgets/qtreewidgetitem_test.py +++ b/sources/pyside6/tests/QtWidgets/qtreewidgetitem_test.py @@ -68,7 +68,7 @@ class QTreeWidgetItemTest(unittest.TestCase): self.assertTrue(item != item2) treewidget.show() QTimer.singleShot(500, app.quit) - app.exec_() + app.exec() if __name__ == "__main__": diff --git a/sources/pyside6/tests/QtWidgets/virtual_protected_inheritance_test.py b/sources/pyside6/tests/QtWidgets/virtual_protected_inheritance_test.py index afe09f0c1..c22648551 100644 --- a/sources/pyside6/tests/QtWidgets/virtual_protected_inheritance_test.py +++ b/sources/pyside6/tests/QtWidgets/virtual_protected_inheritance_test.py @@ -89,7 +89,7 @@ class TimerEventTest(UsesQApplication): # QWidget.timerEvent overrinding (protected inherited) timer_id = self.widget.startTimer(0) - self.app.exec_() + self.app.exec() self.widget.killTimer(timer_id) @@ -102,5 +102,5 @@ if __name__ == '__main__': #widget = MySpinButton(app=app) #widget.startTimer(500) #widget.show() - #app.exec_() + #app.exec() diff --git a/sources/pyside6/tests/QtWidgets/virtual_pure_override_test.py b/sources/pyside6/tests/QtWidgets/virtual_pure_override_test.py index 8629af5b7..68d366c36 100644 --- a/sources/pyside6/tests/QtWidgets/virtual_pure_override_test.py +++ b/sources/pyside6/tests/QtWidgets/virtual_pure_override_test.py @@ -76,7 +76,7 @@ class QGraphicsItemTest(UsesQApplication): rect = self.createRoundRect(scene) view.show() QTimer.singleShot(1000, self.quit_app) - self.app.exec_() + self.app.exec() self.assertTrue(qgraphics_item_painted) |