X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=test%2Fhelper.py;h=9a7f0746ec4ca02ed9f197395b8e48a1fffff38a;hb=e2f89ec7aada2a58ca658a77401762b764adc112;hp=2e320e2cf23fbe9bf169933c0a7172a7a9a617ae;hpb=27f8b0994e9924724c974f46435552d401f5fc08;p=youtube-dl.git 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(