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

Method test_jump_backward

Lib/test/test_capi/test_opt.py:324–335  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

322 self.assertIn(self.guard_is_false, uops)
323
324 def test_jump_backward(self):
325 def testfunc(n):
326 i = 0
327 while i < n:
328 i += 1
329
330 testfunc(TIER2_THRESHOLD)
331
332 ex = get_first_executor(testfunc)
333 self.assertIsNotNone(ex)
334 uops = get_opnames(ex)
335 self.assertIn("_JUMP_TO_TOP", uops)
336
337 def test_resume(self):
338 def testfunc(x):

Callers

nothing calls this directly

Calls 5

testfuncFunction · 0.85
get_first_executorFunction · 0.85
get_opnamesFunction · 0.85
assertIsNotNoneMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected