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

Method assertInstructionsEqual

Lib/test/test_dis.py:2000–2003  ·  view source on GitHub ↗
(self, instrs_1, instrs_2, /)

Source from the content-addressed store, hash-verified

1998class InstructionTestCase(BytecodeTestCase):
1999
2000 def assertInstructionsEqual(self, instrs_1, instrs_2, /):
2001 instrs_1 = [instr_1._replace(positions=None, cache_info=None) for instr_1 in instrs_1]
2002 instrs_2 = [instr_2._replace(positions=None, cache_info=None) for instr_2 in instrs_2]
2003 self.assertEqual(instrs_1, instrs_2)
2004
2005class InstructionTests(InstructionTestCase):
2006

Callers 8

test_outerMethod · 0.80
test_nestedMethod · 0.80
test_doubly_nestedMethod · 0.80
test_jumpyMethod · 0.80
test_iterationMethod · 0.80

Calls 2

_replaceMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected