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

Method test_weak_valued_dict_setdefault

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

Source from the content-addressed store, hash-verified

1732 self.assertIs(weakdict[key], value1)
1733
1734 def test_weak_valued_dict_setdefault(self):
1735 self.check_setdefault(weakref.WeakValueDictionary,
1736 "key", C(), C())
1737
1738 def test_weak_keyed_dict_setdefault(self):
1739 self.check_setdefault(weakref.WeakKeyDictionary,

Callers

nothing calls this directly

Calls 2

check_setdefaultMethod · 0.95
CClass · 0.70

Tested by

no test coverage detected