[Python-checkins] r67993 - sandbox/trunk/2to3/lib2to3/tests/data/py3_test_grammar.py

benjamin.peterson python-checkins at python.org
Sun Dec 28 22:04:33 CET 2008


Author: benjamin.peterson
Date: Sun Dec 28 22:04:32 2008
New Revision: 67993

Log:
update pyk3's test grammar

Modified:
   sandbox/trunk/2to3/lib2to3/tests/data/py3_test_grammar.py

Modified: sandbox/trunk/2to3/lib2to3/tests/data/py3_test_grammar.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/tests/data/py3_test_grammar.py	(original)
+++ sandbox/trunk/2to3/lib2to3/tests/data/py3_test_grammar.py	Sun Dec 28 22:04:32 2008
@@ -485,6 +485,14 @@
         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


More information about the Python-checkins mailing list