diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-02-27 03:46:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-27 03:46:37 (GMT) |
commit | 8400ae209b5fa3d3bdc39d3876eef13d1ea9a72a (patch) | |
tree | 3c93b37ec3fe339cf5a963664579907d50e93ee3 /Lib/test/test_threading.py | |
parent | b7fb1e25c89a9eb85b95027f4167bc0977687c43 (diff) | |
download | cpython-8400ae209b5fa3d3bdc39d3876eef13d1ea9a72a.zip cpython-8400ae209b5fa3d3bdc39d3876eef13d1ea9a72a.tar.gz cpython-8400ae209b5fa3d3bdc39d3876eef13d1ea9a72a.tar.bz2 |
bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-329)
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r-- | Lib/test/test_threading.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index b630509..83a9902 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -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) |