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

Method make_weak_keyed_dict

Lib/test/test_weakref.py:1654–1659  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1652 self.assertEqual(dict[o], 364)
1653
1654 def make_weak_keyed_dict(self):
1655 dict = weakref.WeakKeyDictionary()
1656 objects = list(map(Object, range(self.COUNT)))
1657 for o in objects:
1658 dict[o] = o.arg
1659 return dict, objects
1660
1661 def test_make_weak_valued_dict_from_dict(self):
1662 o = Object(3)

Callers 3

test_weak_keysMethod · 0.95
test_weak_keyed_itersMethod · 0.95

Calls 1

listClass · 0.85

Tested by

no test coverage detected