Message165752
| Author |
ncoghlan |
| Recipients |
brett.cannon, georg.brandl, ncoghlan |
| Date |
2012年07月18日.10:46:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1342608363.39.0.672383016327.issue15384@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
As noted in #15314, one of the pkgutil tests was failing on Windows because pkgutil.get_importer("") was returning None. On my Fedora system it returns FileFinder(".").
I've now tweaked that particular test to use a bogus path string so that None is the expected result on all platforms.
However, the cross-platform discrepancy is a little disturbing - I would have expected the operation to either fail or succeed regardless of platform.
Since pkgutil.get_importer is now just a wrapper that takes care of checking path_importer_cache and then walking sys.path_hooks, I believe the actual culprit is FileFinder.path_hook()("") returning None (I'm currently downloading and installing 3.3b1 on my gaming machine to confirm that) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年07月18日 10:46:03 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, georg.brandl |
| 2012年07月18日 10:46:03 | ncoghlan | set | messageid: <1342608363.39.0.672383016327.issue15384@psf.upfronthosting.co.za> |
| 2012年07月18日 10:46:02 | ncoghlan | link | issue15384 messages |
| 2012年07月18日 10:46:01 | ncoghlan | create |
|