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

Commitb39a314

Browse files
[3.11]gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start (GH-114249) (GH-114517)
(cherry picked from commitce75b4c)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent018b637 commitb39a314

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,6 +2704,7 @@ def test_terminate(self):
27042704
p=self.Pool(3)
27052705
args= [sleep_timeforiinrange(10_000)]
27062706
result=p.map_async(time.sleep,args,chunksize=1)
2707+
time.sleep(0.2)# give some tasks a chance to start
27072708
p.terminate()
27082709
p.join()
27092710

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp