From 155f9550c0f7c0f671d7607f1be671e26a75f39d Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 26 Nov 2014 22:52:28 +0100 Subject: [PATCH] [test/helper] Fix newlines in output of missing test fields --- test/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.22.2