(self, ctx)
| 6015 | conn.send(multiprocessing.get_start_method()) |
| 6016 | |
| 6017 | def check_context(self, ctx): |
| 6018 | r, w = ctx.Pipe(duplex=False) |
| 6019 | p = ctx.Process(target=self._check_context, args=(w,)) |
| 6020 | p.start() |
| 6021 | w.close() |
| 6022 | child_method = r.recv() |
| 6023 | r.close() |
| 6024 | p.join() |
| 6025 | self.assertEqual(child_method, ctx.get_start_method()) |
| 6026 | |
| 6027 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 6028 | def test_context(self): |
no test coverage detected