aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/pysidetest')
-rw-r--r--sources/pyside6/tests/pysidetest/decoratedslot_test.py2
-rw-r--r--sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py10
-rw-r--r--sources/pyside6/tests/pysidetest/notify_id.py2
-rw-r--r--sources/pyside6/tests/pysidetest/properties_test.py4
-rw-r--r--sources/pyside6/tests/pysidetest/property_python_test.py4
-rw-r--r--sources/pyside6/tests/pysidetest/signal_slot_warning.py2
-rw-r--r--sources/pyside6/tests/pysidetest/typedef_signal_test.py2
7 files changed, 13 insertions, 13 deletions
diff --git a/sources/pyside6/tests/pysidetest/decoratedslot_test.py b/sources/pyside6/tests/pysidetest/decoratedslot_test.py
index 3c9df7769..d1f8f6d40 100644
--- a/sources/pyside6/tests/pysidetest/decoratedslot_test.py
+++ b/sources/pyside6/tests/pysidetest/decoratedslot_test.py
@@ -42,7 +42,7 @@ from testbinding import TestObject
class Receiver(QObject):
def __init__(self):
- QObject.__init__(self)
+ super().__init__()
self.called = False
def ReceiverDecorator(func):
diff --git a/sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py b/sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py
index 45a3a608a..adf8b8045 100644
--- a/sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py
+++ b/sources/pyside6/tests/pysidetest/mixin_signal_slots_test.py
@@ -48,13 +48,13 @@ from PySide6.QtCore import QObject, Signal, Slot
class Mixin(object):
mixinSignal = Signal()
def __init__(self, *args, **kwargs):
- super(Mixin,self).__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
class MixinTwo(Mixin):
mixinTwoSignal = Signal()
def __init__(self, *args, **kwargs):
- super(MixinTwo,self).__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
self.mixinTwoSlotCalled = False
@Slot()
@@ -65,7 +65,7 @@ class MixinThree(object):
mixinThreeSignal = Signal()
def __init__(self, *args, **kwargs):
- super(MixinThree,self).__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
self.mixinThreeSlotCalled = False
@Slot()
@@ -76,7 +76,7 @@ class Derived(Mixin, QObject):
derivedSignal = Signal(str)
def __init__(self):
- super(Derived,self).__init__()
+ super().__init__()
self.derivedSlotCalled = False
self.derivedSlotString = ''
@@ -89,7 +89,7 @@ class MultipleDerived(MixinTwo, MixinThree, Mixin, QObject):
derivedSignal = Signal(str)
def __init__(self):
- super(MultipleDerived,self).__init__()
+ super().__init__()
self.derivedSlotCalled = False
self.derivedSlotString = ''
diff --git a/sources/pyside6/tests/pysidetest/notify_id.py b/sources/pyside6/tests/pysidetest/notify_id.py
index 870ee144a..f3c38ab06 100644
--- a/sources/pyside6/tests/pysidetest/notify_id.py
+++ b/sources/pyside6/tests/pysidetest/notify_id.py
@@ -42,7 +42,7 @@ notify method.'''
class Foo(QObject):
def __init__(self):
- QObject.__init__(self)
+ super().__init__()
self._prop = "Empty"
def getProp(self):
diff --git a/sources/pyside6/tests/pysidetest/properties_test.py b/sources/pyside6/tests/pysidetest/properties_test.py
index 9333feb75..abd0b90b6 100644
--- a/sources/pyside6/tests/pysidetest/properties_test.py
+++ b/sources/pyside6/tests/pysidetest/properties_test.py
@@ -45,7 +45,7 @@ class TestObject(QObject):
valueChanged = Signal()
def __init__(self, parent=None):
- super(TestObject, self).__init__(parent)
+ super().__init__(parent)
self._value = -1
self.valueChanged.connect(self._changed)
self.getter_called = 0
@@ -75,7 +75,7 @@ class TestDerivedObject(QStringListModel):
valueChanged = Signal()
def __init__(self, parent=None):
- super(TestDerivedObject, self).__init__(parent)
+ super().__init__(parent)
self._value = -1
self.valueChanged.connect(self._changed)
self.getter_called = 0
diff --git a/sources/pyside6/tests/pysidetest/property_python_test.py b/sources/pyside6/tests/pysidetest/property_python_test.py
index 4b55ee311..6e19e92a0 100644
--- a/sources/pyside6/tests/pysidetest/property_python_test.py
+++ b/sources/pyside6/tests/pysidetest/property_python_test.py
@@ -75,7 +75,7 @@ class PropertyDel(PropertyBase):
class BaseClass(QObject):
def __init__(self):
- QObject.__init__(self)
+ super().__init__()
self._spam = 5
@@ -127,7 +127,7 @@ class PropertySubNewGetter(BaseClass):
class PropertyNewGetter(QObject):
def __init__(self):
- QObject.__init__(self)
+ super().__init__()
@Property(object)
def spam(self):
diff --git a/sources/pyside6/tests/pysidetest/signal_slot_warning.py b/sources/pyside6/tests/pysidetest/signal_slot_warning.py
index ef4419b6d..429fb113a 100644
--- a/sources/pyside6/tests/pysidetest/signal_slot_warning.py
+++ b/sources/pyside6/tests/pysidetest/signal_slot_warning.py
@@ -48,7 +48,7 @@ class Whatever(QtCore.QObject):
echoSignal = QtCore.Signal(str)
def __init__(self):
- super(Whatever, self).__init__()
+ super().__init__()
self.echoSignal.connect(self.mySlot)
def mySlot(self, v):
diff --git a/sources/pyside6/tests/pysidetest/typedef_signal_test.py b/sources/pyside6/tests/pysidetest/typedef_signal_test.py
index 7357caee0..8bab3eab5 100644
--- a/sources/pyside6/tests/pysidetest/typedef_signal_test.py
+++ b/sources/pyside6/tests/pysidetest/typedef_signal_test.py
@@ -41,7 +41,7 @@ from testbinding import TestObject
class Receiver(QObject):
def __init__(self):
- QObject.__init__(self)
+ super().__init__()
self.received = None
def slot(self, value):