From: Cyker Way Date: Mon, 6 Jun 2022 01:19:18 +0000 (-0400) Subject: gh-93247: Fix assert function in asyncio locks test (#93248) X-Git-Tag: v3.12.0a1~1353 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9081bbd036934ab435291db9d32d02fd42282951;p=thirdparty%2FPython%2Fcpython.git gh-93247: Fix assert function in asyncio locks test (#93248) --- diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py index ff25d9edef51..3c94baa56e16 100644 --- a/Lib/test/test_asyncio/test_locks.py +++ b/Lib/test/test_asyncio/test_locks.py @@ -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()