[issue6131] test_modulefinder leaks when run after test_distutils

Antoine Pitrou report at bugs.python.org
Wed May 27 23:56:26 CEST 2009


New submission from Antoine Pitrou <pitrou at free.fr>:

When run independently, test_modulefinder doesn't leak:

$ ./python -m test.regrtest -R 3:2 test_modulefinder
test_modulefinder
beginning 5 repetitions
12345
.....
1 test OK.
[93448 refs]

But it does leak if test_distutils was run before it:

$ ./python -m test.regrtest -R 3:2 test_distutils test_modulefinder
test_distutils
[31861 refs]
beginning 5 repetitions
12345
[31861 refs]
.[31861 refs]
.[31861 refs]
.[31861 refs]
.[31861 refs]
.
test_modulefinder
beginning 5 repetitions
12345
.....
test_modulefinder leaked [145, 145] references, sum=290


The fact that test_modulefinder uses distutils.dir_util could have
something to do with this?

----------
components: Library (Lib), Tests
messages: 88449
nosy: pitrou, tarek
priority: normal
severity: normal
status: open
title: test_modulefinder leaks when run after test_distutils
type: resource usage
versions: Python 3.1

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


More information about the Python-bugs-list mailing list