aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-01-31 19:49:54 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-01-31 20:12:43 +0800
commita7aab0c23e537d9df3d0946c0b960cc92e35d2ff (patch)
tree7a59fb2b1ff65218db1c77aec24295b5ff5abbc6
parenta69bee4762044b657e1fd8bd4cf0baa58d950bc3 (diff)
[test_youtube_lists] Fix TestYoutubeLists.test_youtube_course
Youtube entries are now generators
-rw-r--r--test/test_youtube_lists.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py
index 26aadb34f..47df0f348 100644
--- a/test/test_youtube_lists.py
+++ b/test/test_youtube_lists.py
@@ -34,7 +34,7 @@ class TestYoutubeLists(unittest.TestCase):
ie = YoutubePlaylistIE(dl)
# TODO find a > 100 (paginating?) videos course
result = ie.extract('https://www.youtube.com/course?list=ECUl4u3cNGP61MdtwGTqZA0MreSaDybji8')
- entries = result['entries']
+ entries = list(result['entries'])
self.assertEqual(YoutubeIE().extract_id(entries[0]['url']), 'j9WZyLZCBzs')
self.assertEqual(len(entries), 25)
self.assertEqual(YoutubeIE().extract_id(entries[-1]['url']), 'rYefUsYuEp0')