diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-11-08 00:30:04 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-11-08 00:30:04 (GMT) |
commit | ca13a0dc096fe95a3d92195ea5533dc813785645 (patch) | |
tree | 25b9ca323bc0b4869f9ab6fc005f5903c62fa56c /Lib | |
parent | e52c919d67a20b235de008aed8a165778d78b2a9 (diff) | |
download | cpython-ca13a0dc096fe95a3d92195ea5533dc813785645.zip cpython-ca13a0dc096fe95a3d92195ea5533dc813785645.tar.gz cpython-ca13a0dc096fe95a3d92195ea5533dc813785645.tar.bz2 |
Merged revisions 76148 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76148 | antoine.pitrou | 2009-11-08 01:24:12 +0100 (dim., 08 nov. 2009) | 4 lines
Kill a small potential leak in test_threading.
The leak may not manifest itself if the OS re-uses the same thread ids
(I suppose Neal's machine doesn't :-))
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_threading.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 8f7c676..5e18243 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -113,6 +113,8 @@ class ThreadTests(BaseTestCase): _thread.start_new_thread(f, ()) done.wait() self.assertFalse(ident[0] is None) + # Kill the "immortal" _DummyThread + del threading._active[ident[0]] # run with a small(ish) thread stack size (256kB) def test_various_ops_small_stack(self): |