Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 29246:8dbfd3befbd7
run-tests: use json.dumps(separators=)
Followup to daff05dcd184 per Martijn Pieters
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 26 May 2016 02:35:44 +0000 |
parents | daff05dcd184 |
children | 89822d7a9d5f |
line wrap: on
line diff
--- a/tests/run-tests.py Thu May 26 01:57:34 2016 +0900 +++ b/tests/run-tests.py Thu May 26 02:35:44 2016 +0000 @@ -1836,8 +1836,8 @@ tres = {'result': res} outcome[tc.name] = tres - out = json.dumps(outcome, sort_keys=True, indent=4) - jsonout = '\n'.join([l.rstrip() for l in out.splitlines()]) + jsonout = json.dumps(outcome, sort_keys=True, indent=4, + separators=(',', ': ')) fp.writelines(("testreport =", jsonout)) self._runner._checkhglib('Tested')