Skip to content
Myr

Revert "Adds simplejson as a testing target." (#1865)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent a228a3b · Browse files · 2 files+1 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+1 added−10 removed

  • tests:+0 added−8 removed
  • other:+1 added−2 removed

2 files+1 added−10 removed

modified:tests/test_helpers.py-8 removed
17 unmodified lines
18from werkzeug.exceptions import BadRequest19from werkzeug.http import parse_cache_control_header, parse_options_header20from werkzeug.http import http_date21from flask._compat import StringIO, text_type22try:23 import simplejson24except ImportError:25 import json as simplejson222324def has_encoding(name):25 try:
87 unmodified lines
113 rv = c.get(url)114 assert rv.mimetype == 'application/json'115 assert flask.json.loads(rv.data) == d116121 def test_simplejson_does_not_escape_slashes(self):122 """Test that \\/ is no longer standard behavior."""123 assert '\\/' not in simplejson.dumps('/')124117 def test_jsonify_dicts(self):118 """Test jsonify with dicts and kwargs unpacking."""119 d = dict(120 a=0, b=23, c=3.14, d='t', e='Hi', f=True, g=False,
619 unmodified lines
modified:tox.ini+1 added-2 removed
1[tox]2envlist = {py26,py27,pypy}-{lowest,release,devel,simplejson}, {py33,py34,py35}-{release,devel,simplejson}2envlist = {py26,py27,pypy}-{lowest,release,devel}, {py33,py34,py35}-{release,devel}34[testenv]5commands =6 py.test []
11 unmodified lines
18 devel: git+https://github.com/pallets/werkzeug.git19 devel: git+https://github.com/pallets/jinja.git20 devel: git+https://github.com/pallets/itsdangerous.git21 devel: git+https://github.com/jek/blinker.git22 simplejson: simplejson2223[testenv:docs]24deps = sphinx25commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck