Menu

#12 tests fail when run as python -O

open
nobody
None
5
2005-09-18
2005-09-18
Anonymous
No

json.py relies on side affects in assert statements
which are compiled out when python is run with
optimization (-O).

to reproduce: python -O jsontests.py

also, could you have the archive unpack to a directory
that contains the same name as the archive (ie.
json-py-3_4) instead of hosing the current working
directory. it would also be nice if json-py used
distutils (http://docs.python.org/dist/dist.html).

finally, you may want to consider listing json-py in
the cheeseshop (http://cheeseshop.python.org) as it is
becoming the standard place for python software.

thanks,
wes

Discussion


Log in to post a comment.