From: Florent Xicluna Date: Tue, 27 Jul 2010 22:48:26 +0000 (+0000) Subject: Issue #7825: fix transient refleak in test_threadsignals. X-Git-Tag: v2.7.1rc1~549 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d672229ca2f2114c01e65b28b5d366d2f661e534;p=thirdparty%2FPython%2Fcpython.git Issue #7825: fix transient refleak in test_threadsignals. --- diff --git a/Lib/test/test_threadsignals.py b/Lib/test/test_threadsignals.py index 127ddd262f19..2f7eb607c7e7 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()