Mercurial > hg-stable
changeset 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 | 9d0d1242cd48 |
children | 3e438497edca |
files | tests/run-tests.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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')