Skip to content
Snippets Groups Projects
Unverified Commit 9081bbd0 authored by Cyker Way's avatar Cyker Way Committed by GitHub
Browse files

gh-93247: Fix assert function in asyncio locks test (#93248)

parent 4082c8e2
Branches
Tags
No related merge requests found
......@@ -853,7 +853,7 @@ async def c4(result):
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment