mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
use assert[Not]IsInstance where appropriate
This commit is contained in:
parent
f14c7fc33d
commit
b0f5adc3f4
57 changed files with 269 additions and 272 deletions
|
@ -154,8 +154,7 @@ class ThreadTests(BaseTestCase):
|
|||
# Wait for the thread to finish.
|
||||
mutex.acquire()
|
||||
self.assertIn(tid, threading._active)
|
||||
self.assertTrue(isinstance(threading._active[tid],
|
||||
threading._DummyThread))
|
||||
self.assertIsInstance(threading._active[tid], threading._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