aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-26 22:52:28 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-26 22:52:28 +0100
commit155f9550c0f7c0f671d7607f1be671e26a75f39d (patch)
treed305e0ba20204467b26e91b65d15a683aa911778 /test
parent72476fcc42b2bb059c1d3b6f42e7b2bc1c33293f (diff)
[test/helper] Fix newlines in output of missing test fields
Diffstat (limited to 'test')
-rw-r--r--test/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/helper.py b/test/helper.py
index 2e320e2cf..9a7f0746e 100644
--- a/test/helper.py
+++ b/test/helper.py
@@ -141,7 +141,7 @@ def expect_info_dict(self, expected_dict, got_dict):
if missing_keys:
def _repr(v):
if isinstance(v, compat_str):
- return "'%s'" % v.replace('\\', '\\\\').replace("'", "\\'")
+ return "'%s'" % v.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n')
else:
return repr(v)
info_dict_str = ''.join(