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

Method make_shared_key_dict

Lib/test/test_dict.py:969–979  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

967 self.assertIs(ref(), None, "Cycle was not collected")
968
969 def make_shared_key_dict(self, n):
970 class C:
971 pass
972
973 dicts = []
974 for i in range(n):
975 a = C()
976 a.x, a.y, a.z = 1, 2, 3
977 dicts.append(a.__dict__)
978
979 return dicts
980
981 @support.cpython_only
982 def test_splittable_setdefault(self):

Callers 5

test_splittable_delMethod · 0.95
test_splittable_popMethod · 0.95

Calls 2

CClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected