MCPcopy Index your code
hub / github.com/python/cpython / test_map_async

Method test_map_async

Lib/test/_test_multiprocessing.py:2944–2946  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2942 list(itertools.starmap(mul, tuples)))
2943
2944 def test_map_async(self):
2945 self.assertEqual(self.pool.map_async(sqr, list(range(10))).get(),
2946 list(map(sqr, list(range(10)))))
2947
2948 def test_map_async_callbacks(self):
2949 call_args = self.manager.list() if self.TYPE == 'manager' else []

Callers

nothing calls this directly

Calls 4

listClass · 0.85
map_asyncMethod · 0.80
assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected