PY-65353 Add test

GitOrigin-RevId: 9e8beb9b56fae71040e312ab92f6d09e56f6395b
This commit is contained in:
Andrey Lisin
2024-01-09 15:17:43 +01:00
committed by intellij-monorepo-bot
parent 6ee09adb6e
commit d51a42a60f
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from __future__ import with_statement
import multiprocessing
def f(x):
return x*x # breakpoint
if __name__ == '__main__':
with multiprocessing.Pool() as p:
print(p.map(f, [1, 2, 3]))