Roundup Robot added the comment:
New changeset 6e9939e1f933 by Benjamin Peterson in branch '2.7':
simplify cleanup of test_replace_parent_in_sys_modules (closes #28862)
https://hg.python.org/cpython/rev/6e9939e1f933
--
nosy: +python-dev
resolution: -> fixed
stage: patch review -> resolv
Serhiy Storchaka added the comment:
Following patch fixes a warning. I didn't run the test in debug mode, but
suppose that the leak also is fixed.
--
keywords: +patch
nosy: +serhiy.storchaka
stage: -> patch review
Added file: http://bugs.python.org/file45742/test_import-leak-2.7.patch
New submission from Benjamin Peterson:
It looks like the test if not the fix for #15578 reveals a reference leak
somewhere in the import system:
$ ./python Lib/test/regrtest.py -R :: test_import
[1/1] test_import
beginning 9 repetitions
123456789
.
test_import leaked [1, 1, 1, 1] refere