(self)
| 2890 | p.join() |
| 2891 | |
| 2892 | def test_context(self): |
| 2893 | if self.TYPE == 'processes': |
| 2894 | L = list(range(10)) |
| 2895 | expected = [sqr(i) for i in L] |
| 2896 | with self.Pool(2) as p: |
| 2897 | r = p.map_async(sqr, L) |
| 2898 | self.assertEqual(r.get(), expected) |
| 2899 | p.join() |
| 2900 | self.assertRaises(ValueError, p.map_async, sqr, L) |
| 2901 | |
| 2902 | @classmethod |
| 2903 | def _test_traceback(cls): |
nothing calls this directly
no test coverage detected