(self)
| 549 | @requires_jit_disabled |
| 550 | @requires_specialization |
| 551 | def test_push_init_frame_fails(self): |
| 552 | def instantiate(): |
| 553 | return InitTakesArg() |
| 554 | |
| 555 | for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD): |
| 556 | with self.assertRaises(TypeError): |
| 557 | instantiate() |
| 558 | self.assert_specialized(instantiate, "CALL_ALLOC_AND_ENTER_INIT") |
| 559 | |
| 560 | with self.assertRaises(TypeError): |
| 561 | instantiate() |
| 562 | |
| 563 | def test_recursion_check_for_general_calls(self): |
| 564 | def test(default=None): |
nothing calls this directly
no test coverage detected