use simpler form for iter to list

This commit is contained in:
Christophe Benz 2010-08-31 08:52:57 +02:00 committed by Romain Bignon
commit 96e706db31
8 changed files with 12 additions and 12 deletions

View file

@ -22,7 +22,7 @@ class YoutubeTest(BackendTest):
BACKEND = 'youtube'
def test_youtube(self):
l = [v for v in self.backend.iter_search_results('lol')]
l = list(self.backend.iter_search_results('lol'))
self.assertTrue(len(l) > 0)
v = l[0]
self.backend.fillobj(v, ('url',))