(self)
| 2139 | self.assertIn("L1:", output.getvalue()) |
| 2140 | |
| 2141 | def test_is_op_format(self): |
| 2142 | output = io.StringIO() |
| 2143 | dis.dis("a is b", file=output, show_caches=True) |
| 2144 | self.assertIn("IS_OP 0 (is)", output.getvalue()) |
| 2145 | |
| 2146 | output = io.StringIO() |
| 2147 | dis.dis("a is not b", file=output, show_caches=True) |
| 2148 | self.assertIn("IS_OP 1 (is not)", output.getvalue()) |
| 2149 | |
| 2150 | def test_contains_op_format(self): |
| 2151 | output = io.StringIO() |