(self)
| 2127 | self.assertEqual(instruction.arg, instruction.oparg) |
| 2128 | |
| 2129 | def test_show_caches_with_label(self): |
| 2130 | def f(x, y, z): |
| 2131 | if x: |
| 2132 | res = y |
| 2133 | else: |
| 2134 | res = z |
| 2135 | return res |
| 2136 | |
| 2137 | output = io.StringIO() |
| 2138 | dis.dis(f.__code__, file=output, show_caches=True) |
| 2139 | self.assertIn("L1:", output.getvalue()) |
| 2140 | |
| 2141 | def test_is_op_format(self): |
| 2142 | output = io.StringIO() |