[pypy-svn] r73522 - pypy/branch/decouple-host-opcodes/pypy/objspace/flow

fijal at codespeak.net fijal at codespeak.net
Wed Apr 7 21:40:16 CEST 2010


Author: fijal
Date: Wed Apr  7 21:40:15 2010
New Revision: 73522

Modified:
   pypy/branch/decouple-host-opcodes/pypy/objspace/flow/specialcase.py
Log:
fix objspace/flow tests


Modified: pypy/branch/decouple-host-opcodes/pypy/objspace/flow/specialcase.py
==============================================================================
--- pypy/branch/decouple-host-opcodes/pypy/objspace/flow/specialcase.py	(original)
+++ pypy/branch/decouple-host-opcodes/pypy/objspace/flow/specialcase.py	Wed Apr  7 21:40:15 2010
@@ -4,6 +4,7 @@
 from pypy.interpreter.gateway import ApplevelClass
 from pypy.interpreter.error import OperationError
 from pypy.tool.cache import Cache
+import py
 
 def sc_import(space, fn, args):
     args_w, kwds_w = args.unpack()
@@ -73,7 +74,7 @@
         if app.filename is not None:
             dic['__file__'] = app.filename
         dic['__name__'] = app.modname
-        exec app.code in dic
+        exec py.code.Source(app.source).compile() in dic
         return dic
     _build = staticmethod(_build)
 



More information about the Pypy-commit mailing list