deprecate JSON encoding options

make consistent with built-in json module
This commit is contained in:
David Lord 2020-04-07 12:32:27 -07:00
parent 187cfe90b8
commit 1039d7834b
2 changed files with 54 additions and 49 deletions

View file

@ -232,7 +232,6 @@ class TestJSON:
render = flask.render_template_string
rv = flask.json.htmlsafe_dumps("</script>")
assert rv == '"\\u003c/script\\u003e"'
assert type(rv) is str
rv = render('{{ "</script>"|tojson }}')
assert rv == '"\\u003c/script\\u003e"'
rv = render('{{ "<\0/script>"|tojson }}')