[issue15384] pkgutil.get_importer("") was returning None on Windows buildbots
David Bolen
report at bugs.python.org
Wed Jul 18 22:27:02 CEST 2012
David Bolen <db3l.net at gmail.com> added the comment:
With a local build on my buildbot of the tip of the default branch, pkgutil.get_importer('') returns FileFilter('.'). The tests also passed.
However, after checking here and realizing the offending code had been removed from the test, I put it back in and it still fails.
I think the problem is that sys.path[0] is not '' when testing in the buildbot environment (though it is when I run the debug interpreter interactively). Within the buildbot scripts it's a path to the stdlib test zip, so for example in my test tree it's "D:\cygwin\home\db3l\test\build\PCbuild\python33_d.zip".
And if I hand that string to pkgutil.get_importer() I do seem to get None back.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15384>
_______________________________________
More information about the Python-bugs-list
mailing list