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

Method test_imap_unordered

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

Source from the content-addressed store, hash-verified

3062 self.assertRaises(SayWhenError, it.__next__)
3063
3064 def test_imap_unordered(self):
3065 it = self.pool.imap_unordered(sqr, list(range(10)))
3066 self.assertEqual(sorted(it), list(map(sqr, list(range(10)))))
3067
3068 it = self.pool.imap_unordered(sqr, list(range(1000)), chunksize=100)
3069 self.assertEqual(sorted(it), list(map(sqr, list(range(1000)))))
3070
3071 def test_imap_unordered_handle_iterable_exception(self):
3072 if self.TYPE == 'manager':

Callers

nothing calls this directly

Calls 3

listClass · 0.85
imap_unorderedMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected