projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc68896
)
Fix Python3.7 compatibility issue
author
Taylor Jung
<jupid2@korea.ac.kr>
Sat, 12 May 2018 11:11:12 +0000
(20:11 +0900)
committer
GitHub
<noreply@github.com>
Sat, 12 May 2018 11:11:12 +0000
(20:11 +0900)
passing "async" argument can make invalid argument error on python 3.7
tests/test_streaming.py
patch
|
blob
|
blame
|
history
diff --git
a/tests/test_streaming.py
b/tests/test_streaming.py
index de913573925a7289948e5910bcb8a765852cc1b0..d3c911a7cf79ea1f260a1bbdc6af09437b9b2048 100644
(file)
--- 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