(self)
| 6026 | |
| 6027 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 6028 | def test_context(self): |
| 6029 | for method in ('fork', 'spawn', 'forkserver'): |
| 6030 | try: |
| 6031 | ctx = multiprocessing.get_context(method) |
| 6032 | except ValueError: |
| 6033 | continue |
| 6034 | self.assertEqual(ctx.get_start_method(), method) |
| 6035 | self.assertIs(ctx.get_context(), ctx) |
| 6036 | self.assertRaises(ValueError, ctx.set_start_method, 'spawn') |
| 6037 | self.assertRaises(ValueError, ctx.set_start_method, None) |
| 6038 | self.check_context(ctx) |
| 6039 | |
| 6040 | @staticmethod |
| 6041 | def _dummy_func(): |
nothing calls this directly
no test coverage detected