aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/signals/signal_signature_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/signals/signal_signature_test.py')
-rw-r--r--sources/pyside6/tests/signals/signal_signature_test.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/pyside6/tests/signals/signal_signature_test.py b/sources/pyside6/tests/signals/signal_signature_test.py
index 9aaa6c58b..5cf9fad61 100644
--- a/sources/pyside6/tests/signals/signal_signature_test.py
+++ b/sources/pyside6/tests/signals/signal_signature_test.py
@@ -45,9 +45,12 @@ from helper.usesqcoreapplication import UsesQCoreApplication
called = False
name = "Old"
+
+
class Obj(QObject):
dummySignalArgs = Signal(str)
numberSignal = Signal(int)
+
def __init__(self):
super().__init__()
self.signal = ''
@@ -65,11 +68,15 @@ class Obj(QObject):
global name
name = arg
+
def callback(arg=None):
pass
+
+
def callback_empty():
pass
+
class TestConnectNotifyWithNewStyleSignals(UsesQCoreApplication):
'''Test case for signal signature received by QObject::connectNotify().'''
@@ -103,7 +110,6 @@ class TestConnectNotifyWithNewStyleSignals(UsesQCoreApplication):
sender.emit(SIGNAL("dummySignal()"))
self.assertTrue(called)
-
def testStaticSlotArgs(self):
global name
sender = Obj()