(self)
| 3153 | |
| 3154 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 3155 | def test_context(self): |
| 3156 | if self.TYPE == 'processes': |
| 3157 | L = list(range(10)) |
| 3158 | expected = [sqr(i) for i in L] |
| 3159 | with self.Pool(2) as p: |
| 3160 | r = p.map_async(sqr, L) |
| 3161 | self.assertEqual(r.get(), expected) |
| 3162 | p.join() |
| 3163 | self.assertRaises(ValueError, p.map_async, sqr, L) |
| 3164 | |
| 3165 | @classmethod |
| 3166 | def _test_traceback(cls): |
nothing calls this directly
no test coverage detected