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

Method test_sublclassing_managed_weakref

Lib/test/test_capi/test_misc.py:587–594  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

585 self.assertEqual(ref(), inst)
586
587 def test_sublclassing_managed_weakref(self):
588
589 class C(_testcapi.HeapCTypeWithManagedWeakref):
590 pass
591
592 inst = C()
593 ref = weakref.ref(inst)
594 self.assertEqual(ref(), inst)
595
596 def test_sublclassing_managed_both(self):
597

Callers

nothing calls this directly

Calls 2

CClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected