[pypy-svn] pypy default: use proper applevel helper

gutworth commits-noreply at bitbucket.org
Wed Jan 19 02:52:53 CET 2011


Author: Benjamin Peterson <benjamin at python.org>
Branch: 
Changeset: r40917:2324bb4d9a63
Date: 2011-01-18 19:53 -0600
http://bitbucket.org/pypy/pypy/changeset/2324bb4d9a63/

Log:	use proper applevel helper

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
@@ -7,13 +7,12 @@
         cls.w_ast = cls.space.appexec([], """():
     import _ast
     return _ast""")
-        cls.w_get_ast = cls.space.appexec([], """():
-    def get_ast(source, mode="exec"):
+
+    def w_get_ast(self, source, mode="exec"):
         import _ast as ast
         mod = compile(source, "<test>", mode, ast.PyCF_ONLY_AST)
         assert isinstance(mod, ast.mod)
         return mod
-    return get_ast""")
 
     def test_module(self):
         ast = self.ast


More information about the Pypy-commit mailing list