MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_is_op_format

Method test_is_op_format

Lib/test/test_dis.py:2129–2136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2127 self.assertIn("L1:", output.getvalue())
2128
2129 def test_is_op_format(self):
2130 output = io.StringIO()
2131 dis.dis("a is b", file=output, show_caches=True)
2132 self.assertIn("IS_OP 0 (is)", output.getvalue())
2133
2134 output = io.StringIO()
2135 dis.dis("a is not b", file=output, show_caches=True)
2136 self.assertIn("IS_OP 1 (is not)", output.getvalue())
2137
2138 def test_contains_op_format(self):
2139 output = io.StringIO()

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
disMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected