MCPcopy Index your code
hub / github.com/RustPython/RustPython / make_weak_keyed_dict

Method make_weak_keyed_dict

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

Source from the content-addressed store, hash-verified

1634 self.assertEqual(dict[o], 364)
1635
1636 def make_weak_keyed_dict(self):
1637 dict = weakref.WeakKeyDictionary()
1638 objects = list(map(Object, range(self.COUNT)))
1639 for o in objects:
1640 dict[o] = o.arg
1641 return dict, objects
1642
1643 def test_make_weak_valued_dict_from_dict(self):
1644 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