mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
Issue #7825: fix transient refleak in test_threadsignals.
This commit is contained in:
parent
985c464869
commit
d672229ca2
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@ import unittest
|
||||||
import signal
|
import signal
|
||||||
import os
|
import os
|
||||||
import sys
|
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')
|
thread = import_module('thread')
|
||||||
|
|
||||||
if sys.platform[:3] in ('win', 'os2') or sys.platform=='riscos':
|
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
|
wait for it to finish. Check that we got both signals
|
||||||
and that they were run by the main thread.
|
and that they were run by the main thread.
|
||||||
"""
|
"""
|
||||||
|
@reap_threads
|
||||||
def test_signals(self):
|
def test_signals(self):
|
||||||
signalled_all.acquire()
|
signalled_all.acquire()
|
||||||
self.spawnSignallingThread()
|
self.spawnSignallingThread()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue