mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-93247: Fix assert function in asyncio locks test (GH-93248)
(cherry picked from commit 9081bbd036
)
Co-authored-by: Cyker Way <cykerway@gmail.com>
This commit is contained in:
parent
2220dc50df
commit
a848a9894d
1 changed files with 1 additions and 1 deletions
|
@ -853,7 +853,7 @@ class SemaphoreTests(unittest.IsolatedAsyncioTestCase):
|
|||
self.assertTrue(t1.result())
|
||||
race_tasks = [t2, t3, t4]
|
||||
done_tasks = [t for t in race_tasks if t.done() and t.result()]
|
||||
self.assertTrue(2, len(done_tasks))
|
||||
self.assertEqual(2, len(done_tasks))
|
||||
|
||||
# cleanup locked semaphore
|
||||
sem.release()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue