mirror of
https://github.com/python/cpython.git
synced 2026-05-15 17:08:41 -04: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:
committed by
GitHub
parent
2220dc50df
commit
a848a9894d
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user