[issue14583] try/except import fails --without-threads

Antoine Pitrou report at bugs.python.org
Sun May 6 18:35:45 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> > One, you have some "XXX False" markers in the tests. Should those get
> > deleted or replaced with something?
> 
> Well, I don't know what to replace them with. I would have expected
> pkg.module to end up in sys.modules, but as mentioned in the comments
> the relative import line actually fails with an ImportError. There's
> probably some logic behind that, but that's beyond me.

I should mention that the same happens with 2.7 and 3.2, so it's not a
regression. It's just that I don't understand the logic :-)

----------

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


More information about the Python-bugs-list mailing list