mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
use assert[Not]In where appropriate
A patch from Dave Malcolm.
This commit is contained in:
parent
a69ba65fdc
commit
577473fe68
75 changed files with 471 additions and 454 deletions
|
@ -153,7 +153,7 @@ class ThreadTests(BaseTestCase):
|
|||
tid = _thread.start_new_thread(f, (mutex,))
|
||||
# Wait for the thread to finish.
|
||||
mutex.acquire()
|
||||
self.assertTrue(tid in threading._active)
|
||||
self.assertIn(tid, threading._active)
|
||||
self.assertTrue(isinstance(threading._active[tid],
|
||||
threading._DummyThread))
|
||||
del threading._active[tid]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue