Skip to content

Commit 43be7d5

Browse files
cykerwaymiss-islington
authored andcommitted
pythongh-93247: Fix assert function in asyncio locks test (pythonGH-93248)
(cherry picked from commit 9081bbd) Co-authored-by: Cyker Way <[email protected]>
1 parent 2f8aae3 commit 43be7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncio/test_locks.py

Lines changed: 1 addition & 1 deletion
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)