From 79dc58b404cb9d5a88228fb2317f14ebbcf71cc5 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Mon, 4 Aug 2014 12:02:56 +0200 Subject: [PATCH] [twitter] improve tests --- modules/twitter/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/twitter/test.py b/modules/twitter/test.py index c8d4416a..abbf2bab 100644 --- a/modules/twitter/test.py +++ b/modules/twitter/test.py @@ -34,7 +34,7 @@ class TwitterTest(BackendTest): def test_twitter_list(self): if self.backend.browser.username: - l = list(self.backend.iter_threads()) + l = list(itertools.islice(self.backend.iter_threads(), 0, 20)) assert len(l) thread = self.backend.get_thread(l[0].id) assert len(thread.root.content)