summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-08 00:36:36 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-08 00:36:36 (GMT)
commitdebfafd4e208c98af035371069b4835c1f91f784 (patch)
tree605b4890d4dcad375487ec52c37f2ae02b53e950 /Lib/test/test_threading.py
parent3d26b95ca7ad0f2a39f39606acf2935eb4344e67 (diff)
downloadcpython-debfafd4e208c98af035371069b4835c1f91f784.zip
cpython-debfafd4e208c98af035371069b4835c1f91f784.tar.gz
cpython-debfafd4e208c98af035371069b4835c1f91f784.tar.bz2
Merged revisions 76149 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76149 | antoine.pitrou | 2009-11-08 01:30:04 +0100 (dim., 08 nov. 2009) | 11 lines 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/test/test_threading.py')
-rw-r--r--Lib/test/test_threading.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index f6f6b26..7b6d82b 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -101,6 +101,8 @@ class ThreadTests(unittest.TestCase):
_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):