New submission from STINNER Victor <vstin...@redhat.com>:
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. ---------- components: Windows messages: 320087 nosy: paul.moore, steve.dower, tim.golden, vstinner, zach.ware priority: normal severity: normal status: open title: test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows type: resource usage versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33916> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com