[issue15314] Use importlib instead of pkgutil in runpy

Nick Coghlan report at bugs.python.org
Tue Jul 17 13:43:36 CEST 2012


Nick Coghlan <ncoghlan at gmail.com> added the comment:

OK, I just pushed a tweak to the test that will hopefully resolve the problem. If the tweak works, though, it does suggest we have a bit of weirdness in importlib: it means pkgutil.get_importer("") is returning an importer on POSIX systems, but None on Windows.

The test tweak to get OS X passing for #15230 on 3.2 (where it was already passing on trunk) suggests we may also have a case where 3.2 called os.path.realpath() before setting __file__, while 3.3 does not.

----------

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


More information about the Python-bugs-list mailing list