Skip to content

Commit 9081bbd

Browse files
authored
gh-93247: Fix assert function in asyncio locks test (#93248)
1 parent 4082c8e commit 9081bbd

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
@@ -853,7 +853,7 @@ async def c4(result):
853853
self.assertTrue(t1.result())
854854
race_tasks = [t2, t3, t4]
855855
done_tasks = [t for t in race_tasks if t.done() and t.result()]
856-
self.assertTrue(2, len(done_tasks))
856+
self.assertEqual(2, len(done_tasks))
857857

858858
# cleanup locked semaphore
859859
sem.release()

0 commit comments

Comments
 (0)