MCPcopy Index your code
hub / github.com/python/cpython / test_push_init_frame_fails

Method test_push_init_frame_fails

Lib/test/test_opcache.py:551–561  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

assert_specializedMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected