MCPcopy Index your code
hub / github.com/python/cpython / test_is_op_format

Method test_is_op_format

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

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
disMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected