Lines Matching refs:opname
17 def assertInBytecode(self, x, opname, argval=_UNSPECIFIED):
18 """Returns instr if opname is found, otherwise throws AssertionError"""
20 if instr.opname == opname:
25 msg = '%s not found in bytecode:\n%s' % (opname, disassembly)
28 msg = msg % (opname, argval, disassembly)
31 def assertNotInBytecode(self, x, opname, argval=_UNSPECIFIED):
32 """Throws AssertionError if opname is found"""
34 if instr.opname == opname:
37 msg = '%s occurs in bytecode:\n%s' % (opname, disassembly)
41 msg = msg % (opname, argval, disassembly)