@support.refcount_test
def test_refleaks_in___init__(self):
    gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount')
    bzd = BZ2Decompressor()
    refs_before = gettotalrefcount()
    for i in range(100):
        bzd.__init__()
    self.assertAlmostEqual((gettotalrefcount() - refs_before), 0, delta=10)
@support.refcount_test
def test_refleaks_in___init__(self):
    gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount')
    bzd = BZ2Decompressor()
    refs_before = gettotalrefcount()
    for i in range(100):
        bzd.__init__()
    self.assertAlmostEqual((gettotalrefcount() - refs_before), 0, delta=10)