mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
PY-65353 Add test
GitOrigin-RevId: 9e8beb9b56fae71040e312ab92f6d09e56f6395b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6ee09adb6e
commit
d51a42a60f
11
python/testData/debug/test_multiprocess_2.py
Normal file
11
python/testData/debug/test_multiprocess_2.py
Normal 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]))
|
||||
Reference in New Issue
Block a user