Skip to content

Commit fd247db

Browse files
gh-93247: Fix assert function in asyncio locks test (GH-93248)
(cherry picked from commit 9081bbd) Co-authored-by: Cyker Way <[email protected]>
1 parent 2f8aae3 commit fd247db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncio/test_locks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ async def c4(result):
866866
self.assertTrue(t1.result())
867867
race_tasks = [t2, t3, t4]
868868
done_tasks = [t for t in race_tasks if t.done() and t.result()]
869-
self.assertTrue(2, len(done_tasks))
869+
self.assertEqual(2, len(done_tasks))
870870

871871
# cleanup locked semaphore
872872
sem.release()

0 commit comments

Comments
 (0)