Message231851
Ah, solved it (I think). The bootstrapper used to import the Python and C versions of the module leaves sys.modules unpopulated (Does pickle itself may populate it when it finds no module of that name?). I added a setUp method to the unittest class for operator that explicitly sets sys.modules['operator'] to whichever version is being tested at the time so pickle's lookup works as expected. Is that the right solution? New patch uploaded with that change. |
|
Date |
User |
Action |
Args |
2014-11-29 04:32:35 | josh.r | set | recipients:
+ josh.r, rhettinger, pitrou, zach.ware, serhiy.storchaka, Antony.Lee |
2014-11-29 04:32:35 | josh.r | set | messageid: <1417235555.51.0.0486255152441.issue22955@psf.upfronthosting.co.za> |
2014-11-29 04:32:35 | josh.r | link | issue22955 messages |
2014-11-29 04:32:35 | josh.r | create | |
|