(self)
| 176 | |
| 177 | @support.refcount_test |
| 178 | def test_refleaks_in___init__(self): |
| 179 | gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount') |
| 180 | fake_prop = property('fget', 'fset', 'fdel', 'doc') |
| 181 | refs_before = gettotalrefcount() |
| 182 | for i in range(100): |
| 183 | fake_prop.__init__('fget', 'fset', 'fdel', 'doc') |
| 184 | self.assertAlmostEqual(gettotalrefcount() - refs_before, 0, delta=10) |
| 185 | |
| 186 | @support.refcount_test |
| 187 | def test_gh_115618(self): |
nothing calls this directly
no test coverage detected