def check_lnotab(self, code):
    'Check that the lnotab byte offsets are sensible.'
    code = dis._get_code_object(code)
    lnotab = list(dis.findlinestarts(code))
    min_bytecode = min((t[0] for t in lnotab))
    max_bytecode = max((t[0] for t in lnotab))
    self.assertGreaterEqual(min_bytecode, 0)
    self.assertLess(max_bytecode, len(code.co_code))
Check that the lnotab byte offsets are sensible.
def check_lnotab(self, code):
    
    code = dis._get_code_object(code)
    lnotab = list(dis.findlinestarts(code))
    min_bytecode = min((t[0] for t in lnotab))
    max_bytecode = max((t[0] for t in lnotab))
    self.assertGreaterEqual(min_bytecode, 0)
    self.assertLess(max_bytecode, len(code.co_code))