[issue14583] try/except import fails --without-threads
Antoine Pitrou
report at bugs.python.org
Sun May 6 18:32:00 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.
> Two, in your first test (at least) you only test what is in
> sys.modules once instead of after each attempted import. I would
> repeat the test after each import.
Ok, will do.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14583>
_______________________________________
More information about the Python-bugs-list
mailing list