mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
[test/helper] Fix newlines in output of missing test fields
This commit is contained in:
parent
72476fcc42
commit
155f9550c0
@ -141,7 +141,7 @@ def expect_info_dict(self, expected_dict, got_dict):
|
|||||||
if missing_keys:
|
if missing_keys:
|
||||||
def _repr(v):
|
def _repr(v):
|
||||||
if isinstance(v, compat_str):
|
if isinstance(v, compat_str):
|
||||||
return "'%s'" % v.replace('\\', '\\\\').replace("'", "\\'")
|
return "'%s'" % v.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n')
|
||||||
else:
|
else:
|
||||||
return repr(v)
|
return repr(v)
|
||||||
info_dict_str = ''.join(
|
info_dict_str = ''.join(
|
||||||
|
Loading…
Reference in New Issue
Block a user