diff options
Diffstat (limited to 'coverage/debug.py')
-rw-r--r-- | coverage/debug.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/debug.py b/coverage/debug.py index e5bb6b0b..45d720c3 100644 --- a/coverage/debug.py +++ b/coverage/debug.py @@ -106,4 +106,6 @@ def pretty_data(data): out = json.dumps(data, indent=4, sort_keys=True) # But pairs of numbers shouldn't be split across lines... out = re.sub(r"\[\s+(-?\d+),\s+(-?\d+)\s+]", r"[\1, \2]", out) + # Trailing spaces mess with tests, get rid of them. + out = re.sub(r"(?m)\s+$", "", out) return out |