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 CanalTPTest(BackendTest):
BACKEND = 'canaltp'
def test_canaltp(self):
stations = [s for s in self.backend.iter_station_search('defense')]
stations = list(self.backend.iter_station_search('defense'))
self.assertTrue(len(stations) > 0)
[d for d in self.backend.iter_station_departures(stations[0].id)]
list(self.backend.iter_station_departures(stations[0].id))