X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=test%2Ftest_YoutubeDL.py;fp=test%2Ftest_YoutubeDL.py;h=0769e2ed24d62d817bbeddaa0d6dd7f197e011ce;hb=e0abaab29332f22f438617a7c425b1b2ee1c14d5;hp=ce96661716c42ae0bf9c6a8ccb9ddf48c715e0a2;hpb=de1121d749089ea62d17aadb43493c00492bb37a;p=youtube-dl.git diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index ce9666171..0769e2ed2 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({})