projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de1121d
)
[test_YoutubeDL] Fix get_ids
author
Sergey M․
<dstftw@gmail.com>
Fri, 14 Feb 2020 20:30:06 +0000
(
03:30
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 14 Feb 2020 20:37:25 +0000
(
03:37
+0700)
test/test_YoutubeDL.py
patch
|
blob
|
history
diff --git
a/test/test_YoutubeDL.py
b/test/test_YoutubeDL.py
index ce96661716c42ae0bf9c6a8ccb9ddf48c715e0a2..0769e2ed24d62d817bbeddaa0d6dd7f197e011ce 100644
(file)
--- 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({})