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

Method compare_instructions

Lib/test/test_compile.py:2973–2975  ·  view source on GitHub ↗
(self, seq, expected)

Source from the content-addressed store, hash-verified

2971@unittest.skipIf(_testinternalcapi is None, 'need _testinternalcapi module')
2972class TestInstructionSequence(unittest.TestCase):
2973 def compare_instructions(self, seq, expected):
2974 self.assertEqual([(opcode.opname[i[0]],) + i[1:] for i in seq.get_instructions()],
2975 expected)
2976
2977 def test_basics(self):
2978 seq = _testinternalcapi.new_instruction_sequence()

Callers 2

test_basicsMethod · 0.95
test_nestedMethod · 0.95

Calls 2

get_instructionsMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected