[pypy-commit] pypy py3.5: Fix own test pypy/interpreter/test/test_syntax.py,

amauryfa pypy.commits at gmail.com
Sun Oct 9 10:50:22 EDT 2016


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.5
Changeset: r87664:57ef7c44238c
Date: 2016-10-01 22:45 +0200
http://bitbucket.org/pypy/pypy/changeset/57ef7c44238c/

Log:	Fix own test pypy/interpreter/test/test_syntax.py, this clears
	test_grammar.

diff --git a/pypy/interpreter/astcompiler/codegen.py b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -352,7 +352,13 @@
         space = self.space
         names = []
         self._visit_arg_annotations(args.args, names)
+        if args.vararg:
+            self._visit_arg_annotation(args.vararg.arg, args.vararg.annotation,
+                                       names)
         self._visit_arg_annotations(args.kwonlyargs, names)
+        if args.kwarg:
+            self._visit_arg_annotation(args.kwarg.arg, args.kwarg.annotation,
+                                       names)
         self._visit_arg_annotation("return", returns, names)
         l = len(names)
         if l:


More information about the pypy-commit mailing list