]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93247: Fix assert function in asyncio locks test (#93248)
authorCyker Way <cykerway@gmail.com>
Mon, 6 Jun 2022 01:19:18 +0000 (21:19 -0400)
committerGitHub <noreply@github.com>
Mon, 6 Jun 2022 01:19:18 +0000 (18:19 -0700)
Lib/test/test_asyncio/test_locks.py

index ff25d9edef518f02a8aed20add2ee9be5176d043..3c94baa56e164980c8e0e9df08e84aef7edb785d 100644 (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()