(self)
| 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: |
nothing calls this directly
no test coverage detected