summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threadsignals.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-03 05:37:26 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-03 05:37:26 (GMT)
commitdde5b94875460e704099593766f4a5bc3279483d (patch)
treed0c369148bd2d2f723896839aada008ef931ff19 /Lib/test/test_threadsignals.py
parent17ae2ba78f96d661bdd1d8e2e8f96016c4aa4a60 (diff)
downloadcpython-dde5b94875460e704099593766f4a5bc3279483d.zip
cpython-dde5b94875460e704099593766f4a5bc3279483d.tar.gz
cpython-dde5b94875460e704099593766f4a5bc3279483d.tar.bz2
#7092: Silence more py3k warnings. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/test/test_threadsignals.py')
-rw-r--r--Lib/test/test_threadsignals.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_threadsignals.py b/Lib/test/test_threadsignals.py
index e1096bd..b28705f 100644
--- a/Lib/test/test_threadsignals.py
+++ b/Lib/test/test_threadsignals.py
@@ -14,7 +14,7 @@ process_pid = os.getpid()
signalled_all=thread.allocate_lock()
-def registerSignals((for_usr1, for_usr2, for_alrm)):
+def registerSignals(for_usr1, for_usr2, for_alrm):
usr1 = signal.signal(signal.SIGUSR1, for_usr1)
usr2 = signal.signal(signal.SIGUSR2, for_usr2)
alrm = signal.signal(signal.SIGALRM, for_alrm)
@@ -74,11 +74,11 @@ def test_main():
signal.SIGUSR2 : {'tripped': 0, 'tripped_by': 0 },
signal.SIGALRM : {'tripped': 0, 'tripped_by': 0 } }
- oldsigs = registerSignals((handle_signals, handle_signals, handle_signals))
+ oldsigs = registerSignals(handle_signals, handle_signals, handle_signals)
try:
run_unittest(ThreadSignals)
finally:
- registerSignals(oldsigs)
+ registerSignals(*oldsigs)
if __name__ == '__main__':
test_main()