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

@ -21,6 +21,6 @@ class GazelleTest(BackendTest):
BACKEND = 'gazelle'
def test_torrent(self):
l = [torrent for torrent in self.backend.iter_torrents('sex')]
l = list(self.backend.iter_torrents('sex'))
if len(l) > 0:
self.backend.get_torrent_file(l[0].id)