mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-02 17:37:29 +08:00
Fix bytes/fstring mixing when using iter_errors, fixes #57.
This commit is contained in:
1 parent
076e296497
commit
0d37ff865c
2 files changed
+12
-1
No files matched your search
@@ -285,6 +285,14 @@ if sys.version_info >= (3,):
|
||||
'b"ä"',
|
||||
# combining strings and unicode is allowed in Python 2.
|
||||
'"s" b""',
|
||||
'"s" b"" ""',
|
||||
'b"" "" b"" ""',
|
||||
]
|
||||
if sys.version_info >= (3, 6):
|
||||
FAILING_EXAMPLES += [
|
||||
# Same as above, but for f-strings.
|
||||
'f"s" b""',
|
||||
'b"s" f""',
|
||||
]
|
||||
if sys.version_info >= (2, 7):
|
||||
# This is something that raises a different error in 2.6 than in the other
|
||||
|
||||
Reference in new issue
Block a user