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

Method test_specialize_call_function_ex_py

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

Source from the content-addressed store, hash-verified

578 @requires_jit_disabled
579 @requires_specialization
580 def test_specialize_call_function_ex_py(self):
581 def ex_py(*args, **kwargs):
582 return 1
583
584 def instantiate():
585 args = (1, 2, 3)
586 kwargs = {}
587 return ex_py(*args, **kwargs)
588
589 # Trigger specialization
590 for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):
591 instantiate()
592 self.assert_specialized(instantiate, "CALL_EX_PY")
593
594 @requires_jit_disabled
595 @requires_specialization

Callers

nothing calls this directly

Calls 1

assert_specializedMethod · 0.80

Tested by

no test coverage detected