Browse Source

[test_YoutubeDL] Fix get_ids

master
Sergey M․ 4 years ago
parent
commit
e0abaab293
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 2 deletions
  1. 5
      test/test_YoutubeDL.py

5
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({})

Loading…
Cancel
Save