summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threadsignals.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-07-27 22:48:26 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-07-27 22:48:26 (GMT)
commitd672229ca2f2114c01e65b28b5d366d2f661e534 (patch)
tree1eadb95cc79a9655ed1e6b88a7f9a0ebac3097fb /Lib/test/test_threadsignals.py
parent985c4648695e67d22fea3898c45864e4920bac57 (diff)
downloadcpython-d672229ca2f2114c01e65b28b5d366d2f661e534.zip
cpython-d672229ca2f2114c01e65b28b5d366d2f661e534.tar.gz
cpython-d672229ca2f2114c01e65b28b5d366d2f661e534.tar.bz2
Issue #7825: fix transient refleak in test_threadsignals.
Diffstat (limited to 'Lib/test/test_threadsignals.py')
-rw-r--r--Lib/test/test_threadsignals.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_threadsignals.py b/Lib/test/test_threadsignals.py
index 127ddd2..2f7eb60 100644
--- a/Lib/test/test_threadsignals.py
+++ b/Lib/test/test_threadsignals.py
@@ -4,7 +4,7 @@ import unittest
import signal
import os
import sys
-from test.test_support import run_unittest, import_module
+from test.test_support import run_unittest, import_module, reap_threads
thread = import_module('thread')
if sys.platform[:3] in ('win', 'os2') or sys.platform=='riscos':
@@ -39,6 +39,7 @@ class ThreadSignals(unittest.TestCase):
wait for it to finish. Check that we got both signals
and that they were run by the main thread.
"""
+ @reap_threads
def test_signals(self):
signalled_all.acquire()
self.spawnSignallingThread()