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

Method assert_no_opcode

Lib/test/test_opcache.py:35–38  ·  view source on GitHub ↗
(self, f, opname)

Source from the content-addressed store, hash-verified

33 self.assertIn(opname, opnames)
34
35 def assert_no_opcode(self, f, opname):
36 instructions = dis.get_instructions(f, adaptive=True)
37 opnames = {instruction.opname for instruction in instructions}
38 self.assertNotIn(opname, opnames)
39
40
41class TestLoadSuperAttrCache(unittest.TestCase):

Callers 15

test_binary_opMethod · 0.80
binary_op_nanMethod · 0.80
test_load_super_attrMethod · 0.80
test_contain_opMethod · 0.80
test_send_yield_fromMethod · 0.80
test_store_attr_slotMethod · 0.80
test_to_boolMethod · 0.80
test_unpack_sequenceMethod · 0.80

Calls 2

get_instructionsMethod · 0.80
assertNotInMethod · 0.80

Tested by

no test coverage detected