This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2018-06-20.15:59:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529510380.41.0.56676864532.issue33916@psf.upfronthosting.co.za>
In-reply-to
Content
Using my PR 7827, I saw that test_refleaks_in_decompressor___init__() of test_lzma leaks 100 handles on Windows.

Extract of the code:

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


The test comes from bpo-31787: commit d019bc8319ea35e93bf4baa38098ff1b57cd3ee5.
History
Date User Action Args
2018-06-20 15:59:40vstinnersetrecipients: + vstinner, paul.moore, tim.golden, zach.ware, steve.dower
2018-06-20 15:59:40vstinnersetmessageid: <1529510380.41.0.56676864532.issue33916@psf.upfronthosting.co.za>
2018-06-20 15:59:40vstinnerlinkissue33916 messages
2018-06-20 15:59:40vstinnercreate