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

Method test_pop_jump_if_false

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

Source from the content-addressed store, hash-verified

267 self.assertIn("_UNPACK_SEQUENCE", uops)
268
269 def test_pop_jump_if_false(self):
270 def testfunc(n):
271 i = 0
272 while i < n:
273 i += 1
274
275 testfunc(TIER2_THRESHOLD)
276
277 ex = get_first_executor(testfunc)
278 self.assertIsNotNone(ex)
279 uops = get_opnames(ex)
280 self.assertIn(self.guard_is_true, uops)
281
282 def test_pop_jump_if_none(self):
283 def testfunc(a):

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