summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-06 01:42:21 (GMT)
committerGitHub <noreply@github.com>2022-06-06 01:42:21 (GMT)
commitfd247db57a536d62902b296af599505298fd1e70 (patch)
treed4183efa6e792f04ca5c06a073ad6c185e60b517
parent2f8aae38b9ce19dfd00356927a68cd00366331bc (diff)
downloadcpython-fd247db57a536d62902b296af599505298fd1e70.zip
cpython-fd247db57a536d62902b296af599505298fd1e70.tar.gz
cpython-fd247db57a536d62902b296af599505298fd1e70.tar.bz2
gh-93247: Fix assert function in asyncio locks test (GH-93248)
(cherry picked from commit 9081bbd036934ab435291db9d32d02fd42282951) Co-authored-by: Cyker Way <cykerway@gmail.com>
-rw-r--r--Lib/test/test_asyncio/test_locks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py
index c5e3fdc..167ae70 100644
--- a/Lib/test/test_asyncio/test_locks.py
+++ b/Lib/test/test_asyncio/test_locks.py
@@ -866,7 +866,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()