Add two more issues one about strings and one about an import.

This commit is contained in:
Dave Halter
2017-07-24 00:34:14 +02:00
parent c2ab9a9e25
commit d1eb1d61ec
4 changed files with 32 additions and 0 deletions

View File

@@ -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):