Message105836
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. |
|
Date |
User |
Action |
Args |
2010-05-15 22:50:50 | brett.cannon | set | recipients:
+ brett.cannon, barry, ncoghlan, pitrou |
2010-05-15 22:50:50 | brett.cannon | set | messageid: <1273963850.79.0.445186207133.issue8727@psf.upfronthosting.co.za> |
2010-05-15 22:50:49 | brett.cannon | link | issue8727 messages |
2010-05-15 22:50:48 | brett.cannon | create | |
|