(self, ctx)
| 5679 | conn.send(multiprocessing.get_start_method()) |
| 5680 | |
| 5681 | def check_context(self, ctx): |
| 5682 | r, w = ctx.Pipe(duplex=False) |
| 5683 | p = ctx.Process(target=self._check_context, args=(w,)) |
| 5684 | p.start() |
| 5685 | w.close() |
| 5686 | child_method = r.recv() |
| 5687 | r.close() |
| 5688 | p.join() |
| 5689 | self.assertEqual(child_method, ctx.get_start_method()) |
| 5690 | |
| 5691 | def test_context(self): |
| 5692 | for method in ('fork', 'spawn', 'forkserver'): |
no test coverage detected