RESOLVED FIXED76481
webkitpy: fix json import in json_results_generator_unittest.py
https://bugs.webkit.org/show_bug.cgi?id=76481
Summary webkitpy: fix json import in json_results_generator_unittest.py
Dirk Pranke
Reported 2012-01-17 14:48:33 PST
webkitpy: fix json import on linux
Attachments
Patch (2.11 KB, patch)
2012-01-17 14:49 PST, Dirk Pranke
abarth: review+
Dirk Pranke
Comment 1 2012-01-17 14:49:33 PST
Dirk Pranke
Comment 2 2012-01-17 15:08:35 PST
ick ... okay, the distribution of python on my linux box seems to point to some glacially old version of simplejson that does actually have a speedups.so compiled, so when we load the version in thirdparty/simplejson, it picks up an old speedups.so and explodes. Note that the import in simplejson/encoder.py is "from simplejson import _speedups"; since our module is known as "webkitpy.thirdparty.simplejson" this is how we end up getting the wrong version here. importing json directly is probably the right way to avoid this version skew.
Dirk Pranke
Comment 3 2012-01-17 15:10:56 PST
Eric Seidel (no email)
Comment 4 2012-01-17 18:46:42 PST
We're about to remove support for 2.5 anyway. :)
Note You need to log in before you can comment on or make changes to this bug.