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

Method test_map_unplicklable

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

Source from the content-addressed store, hash-verified

2701 self.assertIsInstance(call_args[1], ValueError)
2702
2703 def test_map_unplicklable(self):
2704 # Issue #19425 -- failure to pickle should not cause a hang
2705 if self.TYPE == 'threads':
2706 self.skipTest('test not appropriate for {}'.format(self.TYPE))
2707 class A(object):
2708 def __reduce__(self):
2709 raise RuntimeError('cannot pickle')
2710 with self.assertRaises(RuntimeError):
2711 self.pool.map(sqr, [A()]*10)
2712
2713 def test_map_chunksize(self):
2714 try:

Callers

nothing calls this directly

Calls 5

skipTestMethod · 0.80
AClass · 0.70
formatMethod · 0.45
assertRaisesMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected