diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2009-11-08 00:24:12 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-11-08 00:24:12 (GMT) |
| commit | 002533013f542160c294791671f3707db4491f22 (patch) | |
| tree | a49a05703d60f0761e27faa7f911b4ddc812efc0 /Lib/test/test_threading.py | |
| parent | 1a22e87a3067a750411e19ad0255991242f77359 (diff) | |
| download | cpython-002533013f542160c294791671f3707db4491f22.zip cpython-002533013f542160c294791671f3707db4491f22.tar.gz cpython-002533013f542160c294791671f3707db4491f22.tar.bz2 | |
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.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index c38eda7..4e0a572 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -111,6 +111,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): |
