[New-bugs-announce] [issue29513] os.scandir(str) reference leak (test_os refleak)

STINNER Victor report at bugs.python.org
Thu Feb 9 07:09:14 EST 2017


New submission from STINNER Victor:

The following code leaks one reference on Python 3.6:

    def test_attributes(self):
        d = dict((entry.name, entry) for entry in os.scandir('.'))

Or try the command:

   ./python -m test -R 3:3 test_os -v -m test_attributes

----------
components: Library (Lib)
messages: 287409
nosy: haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: os.scandir(str) reference leak (test_os refleak)
type: resource usage
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29513>
_______________________________________


More information about the New-bugs-announce mailing list