This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author db3l
Recipients brett.cannon, db3l, georg.brandl, ncoghlan
Date 2012-07-18.20:27:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342643222.83.0.899411449646.issue15384@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-07-18 20:27:02db3lsetrecipients: + db3l, brett.cannon, georg.brandl, ncoghlan
2012-07-18 20:27:02db3lsetmessageid: <1342643222.83.0.899411449646.issue15384@psf.upfronthosting.co.za>
2012-07-18 20:27:02db3llinkissue15384 messages
2012-07-18 20:27:00db3lcreate