]> jfr.im git - yt-dlp.git/commitdiff
[test] Fix `test_YoutubeDL.TestYoutubeDL`
authorpukkandan <redacted>
Tue, 18 May 2021 18:25:32 +0000 (23:55 +0530)
committerpukkandan <redacted>
Wed, 19 May 2021 11:30:40 +0000 (17:00 +0530)
Test `test_ignoreerrors_for_playlist_with_url_transparent_iterable_entries` was broken due to `__original_infodict` being added to the dict

test/test_YoutubeDL.py

index 5454dcf5ef763207dbab43f22ba2c9b2a6c276c3..f34d55d827fd1149386409daa651ca74c475a22c 100644 (file)
@@ -29,6 +29,7 @@ def __init__(self, *args, **kwargs):
         self.msgs = []
 
     def process_info(self, info_dict):
+        info_dict.pop('__original_infodict', None)
         self.downloaded_info_dicts.append(info_dict)
 
     def to_screen(self, msg):