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

Method test_starmap_async

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

Source from the content-addressed store, hash-verified

2937 list(itertools.starmap(mul, tuples)))
2938
2939 def test_starmap_async(self):
2940 tuples = list(zip(range(100), range(99,-1, -1)))
2941 self.assertEqual(self.pool.starmap_async(mul, tuples).get(),
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(),

Callers

nothing calls this directly

Calls 5

listClass · 0.85
starmap_asyncMethod · 0.80
starmapMethod · 0.80
assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected