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

Method test_load_attr_instance_value

Lib/test/test_opcache.py:865–886  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

863
864 @requires_specialization
865 def test_load_attr_instance_value(self):
866 def get_items():
867 class C:
868 pass
869
870 items = []
871 for _ in range(self.ITEMS):
872 item = C()
873 item.a = None
874 items.append(item)
875 return items
876
877 def read(items):
878 for item in items:
879 item.a
880
881 def write(items):
882 for item in items:
883 item.__dict__[None] = None
884
885 opname = "LOAD_ATTR_INSTANCE_VALUE"
886 self.assert_races_do_not_crash(opname, get_items, read, write)
887
888 @requires_specialization
889 def test_load_attr_method_lazy_dict(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected