gh-93247: Fix assert function in asyncio locks test (#93248)

This commit is contained in:
Cyker Way 2022-06-05 21:19:18 -04:00 committed by GitHub
parent 4082c8e298
commit 9081bbd036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()