[pypy-commit] pypy py3k: py3 _fields

pjenvey noreply at buildbot.pypy.org
Tue Aug 26 19:58:25 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r73068:5c7c51c7c4f7
Date: 2014-08-24 16:07 -0700
http://bitbucket.org/pypy/pypy/changeset/5c7c51c7c4f7/

Log:	py3 _fields

diff --git a/pypy/interpreter/astcompiler/test/test_ast.py b/pypy/interpreter/astcompiler/test/test_ast.py
--- a/pypy/interpreter/astcompiler/test/test_ast.py
+++ b/pypy/interpreter/astcompiler/test/test_ast.py
@@ -41,11 +41,12 @@
         w_fields = space.getattr(ast.get(space).w_FunctionDef,
                                  space.wrap("_fields"))
         assert space.eq_w(w_fields, space.wrap(
-            ('name', 'args', 'body', 'decorator_list')))
+            ('name', 'args', 'body', 'decorator_list', 'returns')))
         w_fields = space.getattr(ast.get(space).w_arguments,
                                  space.wrap("_fields"))
         assert space.eq_w(w_fields, space.wrap(
-            ('args', 'vararg', 'kwarg', 'defaults')))
+            ('args', 'vararg', 'varargannotation', 'kwonlyargs', 'kwarg',
+             'kwargannotation', 'defaults', 'kw_defaults')))
         
     def test_attributes(self, space):
         w_attrs = space.getattr(ast.get(space).w_FunctionDef,


More information about the pypy-commit mailing list