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 brett.cannon
Recipients barry, brett.cannon, ncoghlan, pitrou
Date 2010-05-15.22:50:48
SpamBayes Score 0.0005524041
Marked as misclassified No
Message-id <1273963850.79.0.445186207133.issue8727@psf.upfronthosting.co.za>
In-reply-to
Content
I found the cause of the failure.

When Barry implemented PEP 3147, he made PyPycLoader.bytecode_path() operate as if the only possible bytecode file one would want is the __cached__ one. That obviously is not accurate in the face of source-less modules. So the test_import is failing because it is not even attempting a bytecode-only import.

What this means is that importlib needs to change its implementation of bytecode_path() to return the proper path based on whether the source exists. I will get to that hopefully this week. In the mean time I have flagged the test as an expected failure.

This also shows me even more that I need to redo the ABCs in importlib to essentially make bytecode an optimization that the ABC handles and that is not exposed to the importer implementer.
History
Date User Action Args
2010-05-15 22:50:50brett.cannonsetrecipients: + brett.cannon, barry, ncoghlan, pitrou
2010-05-15 22:50:50brett.cannonsetmessageid: <1273963850.79.0.445186207133.issue8727@psf.upfronthosting.co.za>
2010-05-15 22:50:49brett.cannonlinkissue8727 messages
2010-05-15 22:50:48brett.cannoncreate