[Python-checkins] r76150 - in python/branches/release26-maint: Lib/test/test_threading.py

antoine.pitrou python-checkins at python.org
Sun Nov 8 01:36:34 CET 2009


Author: antoine.pitrou
Date: Sun Nov 8 01:36:33 2009
New Revision: 76150
Log:
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 :-))
........
Modified:
 python/branches/release26-maint/ (props changed)
 python/branches/release26-maint/Lib/test/test_threading.py
Modified: python/branches/release26-maint/Lib/test/test_threading.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_threading.py	(original)
+++ python/branches/release26-maint/Lib/test/test_threading.py	Sun Nov 8 01:36:33 2009
@@ -100,6 +100,8 @@
 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):


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /