MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_while_one

Method test_while_one

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

check_lnotabMethod · 0.95
assertNotInBytecodeMethod · 0.80
assertInBytecodeMethod · 0.80

Tested by

no test coverage detected