summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests/data/py3_test_grammar.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib2to3/tests/data/py3_test_grammar.py')
-rw-r--r--Lib/lib2to3/tests/data/py3_test_grammar.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/lib2to3/tests/data/py3_test_grammar.py b/Lib/lib2to3/tests/data/py3_test_grammar.py
index 9a88463..eadf1db 100644
--- a/Lib/lib2to3/tests/data/py3_test_grammar.py
+++ b/Lib/lib2to3/tests/data/py3_test_grammar.py
@@ -485,6 +485,14 @@ class GrammarTests(unittest.TestCase):
global a, b
global one, two, three, four, five, six, seven, eight, nine, ten
+ def testNonlocal(self):
+ # 'nonlocal' NAME (',' NAME)*
+ x = 0
+ y = 0
+ def f():
+ nonlocal x
+ nonlocal x, y
+
def testAssert(self):
# assert_stmt: 'assert' test [',' test]
assert 1