mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-20 10:03:08 +08:00
Add two more issues one about strings and one about an import.
This commit is contained in:
@@ -5,6 +5,10 @@ gather some of the potentially dangerous ones.
|
||||
|
||||
from __future__ import division
|
||||
|
||||
'' ''
|
||||
''r''u''
|
||||
b'' BR''
|
||||
|
||||
for x in [1]:
|
||||
try:
|
||||
continue # Only the other continue and pass is an error.
|
||||
|
||||
@@ -72,6 +72,7 @@ def test_indentation_errors(code, positions):
|
||||
'yield',
|
||||
'try: pass\nexcept: pass\nexcept X: pass',
|
||||
'f(x for x in bar, 1)',
|
||||
'from foo import a,',
|
||||
|
||||
# IndentationError
|
||||
' foo',
|
||||
@@ -111,6 +112,7 @@ def test_python_exception_matches(code):
|
||||
('async def foo():\n def nofoo():[x async for x in []]', '3.6'),
|
||||
('[*[] for a in [1]]', '3.5'),
|
||||
('{**{} for a in [1]}', '3.5'),
|
||||
('"s" b""', '3.5'),
|
||||
]
|
||||
)
|
||||
def test_python_exception_matches_version(code, version):
|
||||
|
||||
Reference in New Issue
Block a user