mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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 :-))
This commit is contained in:
parent
1a22e87a30
commit
002533013f
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue