diff options
Diffstat (limited to 'sources/pyside6/tests/pysidetest')
3 files changed, 7 insertions, 7 deletions
diff --git a/sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py b/sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py index 3209f749f..7e1ddbb17 100644 --- a/sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py +++ b/sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py @@ -20,7 +20,7 @@ init_test_paths(False) from PySide6.QtCore import QObject, Signal, Slot -class Mixin(object): +class Mixin: mixinSignal = Signal() def __init__(self, *args, **kwargs): @@ -39,7 +39,7 @@ class MixinTwo(Mixin): self.mixinTwoSlotCalled = True -class MixinThree(object): +class MixinThree: mixinThreeSignal = Signal() def __init__(self, *args, **kwargs): diff --git a/sources/pyside6/tests/pysidetest/multiple_inheritance_test.py b/sources/pyside6/tests/pysidetest/multiple_inheritance_test.py index a9808cfa3..fee2eea8d 100644 --- a/sources/pyside6/tests/pysidetest/multiple_inheritance_test.py +++ b/sources/pyside6/tests/pysidetest/multiple_inheritance_test.py @@ -22,7 +22,7 @@ def xprint(*args, **kw): # This is the original testcase of PYSIDE-1564 -class Age(object): +class Age: def __init__(self, age=0, **kwds): super().__init__(**kwds) @@ -117,7 +117,7 @@ class II(G, H, QtWidgets.QLabel): # PYSIDE-2294: Friedemann's test adapted. # We need to ignore positional args in mixin classes. -class Ui_X_MainWindow(object): # Emulating uic +class Ui_X_MainWindow: # Emulating uic def setupUi(self, MainWindow): MainWindow.resize(400, 300) self.lbl = QLabel(self) @@ -160,7 +160,7 @@ class AdditionalMultipleInheritanceTest(UsesQApplication): # PYSIDE-2654: Additional missing init test. # This must work if no __init__ is defined (Ui_Form) -class Ui_Form(object): +class Ui_Form: pass diff --git a/sources/pyside6/tests/pysidetest/property_python_test.py b/sources/pyside6/tests/pysidetest/property_python_test.py index e26f07bb9..faf509f1f 100644 --- a/sources/pyside6/tests/pysidetest/property_python_test.py +++ b/sources/pyside6/tests/pysidetest/property_python_test.py @@ -89,7 +89,7 @@ class SubClass(BaseClass): raise PropertyDel(self._spam) -class PropertyDocBase(object): +class PropertyDocBase: _spam = 1 def _get_spam(self): @@ -188,7 +188,7 @@ class PropertyTests(unittest.TestCase): @unittest.skipIf(sys.flags.optimize >= 2, "Docstrings are omitted with -O2 and above") def test_property_decorator_doc_writable(self): - class PropertyWritableDoc(object): + class PropertyWritableDoc: @Property(object) def spam(self): |