(self)
| 1103 | |
| 1104 | @support.refcount_test |
| 1105 | def test_refleaks_in___init__(self): |
| 1106 | gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount') |
| 1107 | zlibd = zlib._ZlibDecompressor() |
| 1108 | refs_before = gettotalrefcount() |
| 1109 | for i in range(100): |
| 1110 | zlibd.__init__() |
| 1111 | self.assertAlmostEqual(gettotalrefcount() - refs_before, 0, delta=10) |
| 1112 | |
| 1113 | |
| 1114 | class CustomInt: |
nothing calls this directly
no test coverage detected