From 7ae8019cda4cbc3a16eeb8cc63c95f316290f109 Mon Sep 17 00:00:00 2001 From: Taylor Jung Date: Sat, 12 May 2018 20:11:12 +0900 Subject: [PATCH] Fix Python3.7 compatibility issue passing "async" argument can make invalid argument error on python 3.7 --- tests/test_streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1