(self)
| 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 |
nothing calls this directly
no test coverage detected