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

Method test_weak_keyed_len_cycles

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

Source from the content-addressed store, hash-verified

1343 self.assertEqual(n2, 0)
1344
1345 def test_weak_keyed_len_cycles(self):
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))

Callers

nothing calls this directly

Calls 1

check_len_cyclesMethod · 0.95

Tested by

no test coverage detected