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

Method test_while_one

Lib/test/test_peepholer.py:134–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 self.check_lnotab(f)
133
134 def test_while_one(self):
135 # Skip over: LOAD_CONST trueconst POP_JUMP_IF_FALSE xx
136 def f():
137 while 1:
138 pass
139 return list
140 for elem in ('LOAD_CONST', 'POP_JUMP_IF_FALSE'):
141 self.assertNotInBytecode(f, elem)
142 for elem in ('JUMP_BACKWARD',):
143 self.assertInBytecode(f, elem)
144 self.check_lnotab(f)
145
146 def test_pack_unpack(self):
147 for line, elem in (

Callers

nothing calls this directly

Calls 3

check_lnotabMethod · 0.95
assertNotInBytecodeMethod · 0.80
assertInBytecodeMethod · 0.80

Tested by

no test coverage detected