Author: Matti Picus <[email protected]>
Branch: py3.5-appexec
Changeset: r92868:ec989ce318a9
Date: 2017-10-28 23:40 +0300
http://bitbucket.org/pypy/pypy/changeset/ec989ce318a9/

Log:    make appexec for applevel tests identical to default

diff --git a/pypy/tool/pytest/objspace.py b/pypy/tool/pytest/objspace.py
--- a/pypy/tool/pytest/objspace.py
+++ b/pypy/tool/pytest/objspace.py
@@ -79,7 +79,9 @@
         body = body.lstrip()
         assert body.startswith('(')
         src = py.code.Source("def anonymous" + body)
-        return (src, args)
+        d = {}
+        exec src.compile() in d
+        return d['anonymous'](*args)
 
     def wrap(self, obj):
         if isinstance(obj, str):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to