def test_while_one(self):

    def f():
        while 1:
            pass
        return list
    for elem in ('LOAD_CONST', 'POP_JUMP_IF_FALSE'):
        self.assertNotInBytecode(f, elem)
    for elem in ('JUMP_ABSOLUTE',):
        self.assertInBytecode(f, elem)
    self.check_lnotab(f)
def test_while_one(self):

    def f():
        while 1:
            pass
        return list
    for elem in ('LOAD_CONST', 'POP_JUMP_IF_FALSE'):
        self.assertNotInBytecode(f, elem)
    for elem in ('JUMP_ABSOLUTE',):
        self.assertInBytecode(f, elem)
    self.check_lnotab(f)