mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-12 19:24:39 +08:00
Python 2.7 io.StringIO always needs unicode input.
This commit is contained in:
@@ -135,7 +135,7 @@ def test_ur_literals():
|
|||||||
- All the other Python versions work very well with it.
|
- All the other Python versions work very well with it.
|
||||||
"""
|
"""
|
||||||
def check(literal):
|
def check(literal):
|
||||||
io = StringIO(literal)
|
io = StringIO(u(literal))
|
||||||
tokens = tokenize.generate_tokens(io.readline)
|
tokens = tokenize.generate_tokens(io.readline)
|
||||||
token_list = list(tokens)
|
token_list = list(tokens)
|
||||||
typ, result_literal, _, _ = token_list[0]
|
typ, result_literal, _, _ = token_list[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user