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

Method test_weak_valued_len_cycles

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

Source from the content-addressed store, hash-verified

1346 self.check_len_cycles(weakref.WeakKeyDictionary, lambda k: (k, 1))
1347
1348 def test_weak_valued_len_cycles(self):
1349 self.check_len_cycles(weakref.WeakValueDictionary, lambda k: (1, k))
1350
1351 def check_len_race(self, dict_type, cons):
1352 # Extended sanity checks for len() in the face of cyclic collection

Callers

nothing calls this directly

Calls 1

check_len_cyclesMethod · 0.95

Tested by

no test coverage detected