(self)
| 3140 | |
| 3141 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 3142 | def test_empty_iterable(self): |
| 3143 | # See Issue 12157 |
| 3144 | p = self.Pool(1) |
| 3145 | |
| 3146 | self.assertEqual(p.map(sqr, []), []) |
| 3147 | self.assertEqual(list(p.imap(sqr, [])), []) |
| 3148 | self.assertEqual(list(p.imap_unordered(sqr, [])), []) |
| 3149 | self.assertEqual(p.map_async(sqr, []).get(), []) |
| 3150 | |
| 3151 | p.close() |
| 3152 | p.join() |
| 3153 | |
| 3154 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 3155 | def test_context(self): |
nothing calls this directly
no test coverage detected