MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_empty_iterable

Method test_empty_iterable

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

Source from the content-addressed store, hash-verified

2878 p.join()
2879
2880 def test_empty_iterable(self):
2881 # See Issue 12157
2882 p = self.Pool(1)
2883
2884 self.assertEqual(p.map(sqr, []), [])
2885 self.assertEqual(list(p.imap(sqr, [])), [])
2886 self.assertEqual(list(p.imap_unordered(sqr, [])), [])
2887 self.assertEqual(p.map_async(sqr, []).get(), [])
2888
2889 p.close()
2890 p.join()
2891
2892 def test_context(self):
2893 if self.TYPE == 'processes':

Callers

nothing calls this directly

Calls 10

mapMethod · 0.95
imapMethod · 0.95
imap_unorderedMethod · 0.95
map_asyncMethod · 0.95
closeMethod · 0.95
joinMethod · 0.95
listClass · 0.85
PoolMethod · 0.45
assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected