Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita848a98

Browse files
gh-93247: Fix assert function in asyncio locks test (GH-93248)
(cherry picked from commit9081bbd)Co-authored-by: Cyker Way <cykerway@gmail.com>
1 parent2220dc5 commita848a98

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= [tfortinrace_tasksift.done()andt.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)

[8]ページ先頭

©2009-2025 Movatter.jp