A feature-rich command-line audio/video downloader
[test_YoutubeDL] Fix get_ids
Sergey M․e0abaab29332
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.pyindex ce96661716..0769e2ed24 100644--- a/test/test_YoutubeDL.py+++ b/test/test_YoutubeDL.py@@ -818,8 +818,9 @@ class TestYoutubeDL(unittest.TestCase):def get_ids(params):ydl = YDL(params)- # make a copy because the dictionary can be modified- ydl.process_ie_result(playlist.copy())+ # make a deep copy because the dictionary and nested entries+ # can be modified+ ydl.process_ie_result(copy.deepcopy(playlist))return [int(v['id']) for v in ydl.downloaded_info_dicts]result = get_ids({})