[New-bugs-announce] [issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows
STINNER Victor
report at bugs.python.org
Wed Jun 20 11:59:40 EDT 2018
New submission from STINNER Victor <vstinner at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33916>
_______________________________________
More information about the New-bugs-announce
mailing list