Better __future__ import handling for those that don't exist.

This commit is contained in:
Dave Halter
2017-07-25 20:21:38 +02:00
parent d012353637
commit 6a92f5ec2d
3 changed files with 32 additions and 6 deletions

View File

@@ -73,6 +73,9 @@ def test_indentation_errors(code, positions):
'try: pass\nexcept: pass\nexcept X: pass',
'f(x for x in bar, 1)',
'from foo import a,',
'from __future__ import whatever',
'from __future__ import braces',
'from .__future__ import whatever',
'def f(x=3, y): pass',
'lambda x=3, y: x',
#'None = 1',