Add the issue 'name %s is nonlocal and global

This commit is contained in:
Dave Halter
2017-07-30 13:12:27 +02:00
parent 443cb1ce08
commit d7b7548f8d
2 changed files with 19 additions and 1 deletions

View File

@@ -220,6 +220,11 @@ def test_indentation_errors(code, positions):
a = 3
nonlocal a
'''),
dedent('''
def x():
global a
nonlocal a
'''),
# IndentationError