summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-02-15 03:30:06 +0700
committerSergey M․ <dstftw@gmail.com>2020-02-15 03:37:25 +0700
commite0abaab29332f22f438617a7c425b1b2ee1c14d5 (patch)
treed8b3070d1ba89249970cd757b83baecdc9fdfd41 /test
parentde1121d749089ea62d17aadb43493c00492bb37a (diff)
[test_YoutubeDL] Fix get_ids
Diffstat (limited to 'test')
-rw-r--r--test/test_YoutubeDL.py5
1 files changed, 3 insertions, 2 deletions
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({})