mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-236)
This commit is contained in:
parent
1f5639c77f
commit
f3a9faba4b
3 changed files with 9 additions and 0 deletions
|
@ -170,6 +170,9 @@ class ThreadTests(BaseTestCase):
|
|||
mutex.acquire()
|
||||
self.assertIn(tid, threading._active)
|
||||
self.assertIsInstance(threading._active[tid], threading._DummyThread)
|
||||
#Issue 29376
|
||||
self.assertTrue(threading._active[tid].is_alive())
|
||||
self.assertRegex(repr(threading._active[tid]), '_DummyThread')
|
||||
del threading._active[tid]
|
||||
|
||||
# PyThreadState_SetAsyncExc() is a CPython-only gimmick, not (currently)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue