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

Method test_contains_op_format

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
disMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected