
python-checkins at python
Nov 7, 2009, 6:20 PM
Post #1 of 1
(48 views)
Permalink
|
|
r76148 - python/trunk/Lib/test/test_threading.py
|
|
Author: antoine.pitrou Date: Sun Nov 8 01:24:12 2009 New Revision: 76148 Log: 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/trunk/Lib/test/test_threading.py Modified: python/trunk/Lib/test/test_threading.py ============================================================================== --- python/trunk/Lib/test/test_threading.py (original) +++ python/trunk/Lib/test/test_threading.py Sun Nov 8 01:24:12 2009 @@ -111,6 +111,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): _______________________________________________ Python-checkins mailing list Python-checkins[at]python.org http://mail.python.org/mailman/listinfo/python-checkins
|