From: Andrew W. Donoho Date: Tue, 28 Jan 2014 20:57:26 +0000 (-0600) Subject: Set a timeout on the main sample stream to test that code path. X-Git-Tag: twitter-1.11.0~3^2^2~3 X-Git-Url: https://jfr.im/git/z_archive/twitter.git/commitdiff_plain/b01fa3f8b66a407e0e1cd00107a3adfc1f664836 Set a timeout on the main sample stream to test that code path. --- diff --git a/twitter/stream_example.py b/twitter/stream_example.py index 5f2dbdf..571886c 100644 --- a/twitter/stream_example.py +++ b/twitter/stream_example.py @@ -46,7 +46,7 @@ def main(): stream = TwitterStream(auth=auth, domain='sitestream.twitter.com') tweet_iter = stream.site() else: - stream = TwitterStream(auth=auth) + stream = TwitterStream(auth=auth, timeout=60.0) tweet_iter = stream.statuses.sample() # Iterate over the sample stream.