Eli Bendersky <eli...@gmail.com> added the comment:

Florent, I can reproduce the problem by leaving just the last 
import_fresh_module in test_fresh_import.py

And your patch fixes it, although as Nick says it's problematic in terms of ref 
leaks.

What I'm not sure about is why the extra reference is needed. The modules *are* 
kept in sys.modules, after all.

IIUC, this is probably causing the strange failure I was having with 
test_xml_etree_c not being able to use the cET_alias global in some tests.

----------
resolution: duplicate -> 
status: closed -> open

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14035>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to