Issue #14696: Fix parser module to understand 'nonlocal' declarations.
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index 833d317..f6105fc 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -57,6 +57,16 @@
                          "    if (yield):\n"
                          "        yield x\n")
 
+    def test_nonlocal_statement(self):
+        self.check_suite("def f():\n"
+                         "    x = 0\n"
+                         "    def g():\n"
+                         "        nonlocal x\n")
+        self.check_suite("def f():\n"
+                         "    x = y = 0\n"
+                         "    def g():\n"
+                         "        nonlocal x, y\n")
+
     def test_expressions(self):
         self.check_expr("foo(1)")
         self.check_expr("[1, 2, 3]")