Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_starmap_async(self):
items = [(1, 2), (3, 4), (5, 6)]
pfalse = parmap.starmap_async(_identity, items, 5, 6, pm_parallel=False)
ptrue = parmap.starmap_async(_identity, items, 5, 6, pm_parallel=True)
self.assertEqual(pfalse.get(), ptrue.get())
def test_starmap_async(self):
items = [(1, 2), (3, 4), (5, 6)]
pfalse = parmap.starmap_async(_identity, items, 5, 6, pm_parallel=False)
ptrue = parmap.starmap_async(_identity, items, 5, 6, pm_parallel=True)
self.assertEqual(pfalse.get(), ptrue.get())