From: Taylor Jung Date: Sat, 12 May 2018 11:11:12 +0000 (+0900) Subject: Fix Python3.7 compatibility issue X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7ae8019cda4cbc3a16eeb8cc63c95f316290f109;p=tweepy.git Fix Python3.7 compatibility issue passing "async" argument can make invalid argument error on python 3.7 --- diff --git a/tests/test_streaming.py b/tests/test_streaming.py index de91357..d3c911a 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -105,7 +105,7 @@ class TweepyStreamTests(unittest.TestCase): def test_track_encoding(self): s = Stream(None, None) - s._start = lambda async: None + s._start = lambda is_async: None s.filter(track=[u'Caf\xe9']) # Should be UTF-8 encoded @@ -113,7 +113,7 @@ class TweepyStreamTests(unittest.TestCase): def test_follow_encoding(self): s = Stream(None, None) - s._start = lambda async: None + s._start = lambda is_async: None s.filter(follow=[u'Caf\xe9']) # Should be UTF-8 encoded