[pypy-commit] pypy py3.5: Fix test

arigo pypy.commits at gmail.com
Tue Aug 30 15:35:59 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r86757:63e420d9e2ff
Date: 2016-08-30 21:35 +0200
http://bitbucket.org/pypy/pypy/changeset/63e420d9e2ff/

Log:	Fix test

diff --git a/pypy/module/_ast/test/test_ast.py b/pypy/module/_ast/test/test_ast.py
--- a/pypy/module/_ast/test/test_ast.py
+++ b/pypy/module/_ast/test/test_ast.py
@@ -125,8 +125,8 @@
     def test_optional(self):
         mod = self.get_ast("x(32)", "eval")
         call = mod.body
-        assert call.starargs is None
-        assert call.kwargs is None
+        assert len(call.args) == 1
+        assert call.args[0].n == 32
         co = compile(mod, "<test>", "eval")
         ns = {"x" : lambda x: x}
         assert eval(co, ns) == 32


More information about the pypy-commit mailing list