(self)
| 3000 | self.compare_instructions(seq, [ex + (0,0,0) for ex in expected]) |
| 3001 | |
| 3002 | def test_nested(self): |
| 3003 | seq = _testinternalcapi.new_instruction_sequence() |
| 3004 | seq.addop(opcode.opmap['LOAD_CONST'], 1, 1, 0, 0, 0) |
| 3005 | nested = _testinternalcapi.new_instruction_sequence() |
| 3006 | nested.addop(opcode.opmap['LOAD_CONST'], 2, 2, 0, 0, 0) |
| 3007 | |
| 3008 | self.compare_instructions(seq, [('LOAD_CONST', 1, 1, 0, 0, 0)]) |
| 3009 | self.compare_instructions(nested, [('LOAD_CONST', 2, 2, 0, 0, 0)]) |
| 3010 | |
| 3011 | seq.add_nested(nested) |
| 3012 | self.compare_instructions(seq, [('LOAD_CONST', 1, 1, 0, 0, 0)]) |
| 3013 | self.compare_instructions(seq.get_nested()[0], [('LOAD_CONST', 2, 2, 0, 0, 0)]) |
| 3014 | |
| 3015 | def test_static_attributes_are_sorted(self): |
| 3016 | code = ( |
nothing calls this directly
no test coverage detected