(self)
| 2148 | self.assertIn("IS_OP 1 (is not)", output.getvalue()) |
| 2149 | |
| 2150 | def test_contains_op_format(self): |
| 2151 | output = io.StringIO() |
| 2152 | dis.dis("a in b", file=output, show_caches=True) |
| 2153 | self.assertIn("CONTAINS_OP 0 (in)", output.getvalue()) |
| 2154 | |
| 2155 | output = io.StringIO() |
| 2156 | dis.dis("a not in b", file=output, show_caches=True) |
| 2157 | self.assertIn("CONTAINS_OP 1 (not in)", output.getvalue()) |
| 2158 | |
| 2159 | def test_baseopname_and_baseopcode(self): |
| 2160 | # Standard instructions |