From: Philipp Hagemeister Date: Wed, 26 Nov 2014 21:52:28 +0000 (+0100) Subject: [test/helper] Fix newlines in output of missing test fields X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=155f9550c0f7c0f671d7607f1be671e26a75f39d;p=youtube-dl [test/helper] Fix newlines in output of missing test fields --- 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(