mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 05:14:29 +08:00
Add the issue 'name %s is nonlocal and global
This commit is contained in:
@@ -220,6 +220,11 @@ def test_indentation_errors(code, positions):
|
||||
a = 3
|
||||
nonlocal a
|
||||
'''),
|
||||
dedent('''
|
||||
def x():
|
||||
global a
|
||||
nonlocal a
|
||||
'''),
|
||||
|
||||
|
||||
# IndentationError
|
||||
|
||||
Reference in New Issue
Block a user