Fix different behavior in python3.4 json module

THe 3.4 json changes the way json.dumps works when indent is specified,
which breaks tests. Passing the separators argument explicitely forces
the old behavior back.

Change-Id: Ie27eb1491b984e65fedeb21864e2833ada2872fe
This commit is contained in:
Thomas Herve
2015-02-03 13:42:53 +01:00
parent 2d356098e5
commit eaf05d32cf

View File

@@ -49,7 +49,8 @@ def link_formatter(links):
def json_formatter(js):
return jsonutils.dumps(js, indent=2, ensure_ascii=False)
return jsonutils.dumps(js, indent=2, ensure_ascii=False,
separators=(', ', ': '))
def text_wrap_formatter(d):