[PyPy-issue] [issue624] Make Python 2.7 Json tests pass

Bobby Impollonia pypy-dev-issue at codespeak.net
Sat Jan 22 23:00:25 CET 2011

New submission from Bobby Impollonia <bobbyi at gmail.com>:

Some of the json tests verify that functions are being pulled from _json (its C extension module). Since pypy doesn't have a _json 
module, the json tests in lib-python/2.7.0/test/test_json.py currently do not all pass.

If the attached file is added as lib-python/modified-2.7.0/_json.py , then the json tests pass since this adds a _json module 
with the functions the tests expect. The implementations of those functions are identical to the ones in json.decoder / 

An alternate approach would be to modify the tests to remove the checks for things coming from _json.

effort: easy
files: _json.py
messages: 2065
nosy: bobbyi, pypy-issue
priority: bug
release: 1.4
status: unread
title: Make Python 2.7 Json tests pass

PyPy development tracker <pypy-dev-issue at codespeak.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _json.py
Type: text/x-python-script
Size: 5975 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-issue/attachments/20110122/97b52864/attachment.bin>

More information about the Pypy-issue mailing list