MCPcopy Create free account
hub / github.com/python/cpython / test_pop_jump_if_true

Method test_pop_jump_if_true

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

Source from the content-addressed store, hash-verified

309 self.assertNotIn("_GUARD_IS_NOT_NONE_POP", uops)
310
311 def test_pop_jump_if_true(self):
312 def testfunc(n):
313 i = 0
314 while not i >= n:
315 i += 1
316
317 testfunc(TIER2_THRESHOLD)
318
319 ex = get_first_executor(testfunc)
320 self.assertIsNotNone(ex)
321 uops = get_opnames(ex)
322 self.assertIn(self.guard_is_false, uops)
323
324 def test_jump_backward(self):
325 def testfunc(n):

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