(self)
| 5689 | self.assertEqual(child_method, ctx.get_start_method()) |
| 5690 | |
| 5691 | def test_context(self): |
| 5692 | for method in ('fork', 'spawn', 'forkserver'): |
| 5693 | try: |
| 5694 | ctx = multiprocessing.get_context(method) |
| 5695 | except ValueError: |
| 5696 | continue |
| 5697 | self.assertEqual(ctx.get_start_method(), method) |
| 5698 | self.assertIs(ctx.get_context(), ctx) |
| 5699 | self.assertRaises(ValueError, ctx.set_start_method, 'spawn') |
| 5700 | self.assertRaises(ValueError, ctx.set_start_method, None) |
| 5701 | self.check_context(ctx) |
| 5702 | |
| 5703 | def test_context_check_module_types(self): |
| 5704 | try: |
nothing calls this directly
no test coverage detected