[pypy-svn] r9311 - pypy/branch/dist-interpapp/lib-python-2.3.4/test

hpk at codespeak.net hpk at codespeak.net
Fri Feb 18 17:47:39 CET 2005


Author: hpk
Date: Fri Feb 18 17:47:39 2005
New Revision: 9311

Modified:
   pypy/branch/dist-interpapp/lib-python-2.3.4/test/conftest.py
Log:
some adaption to the new space.builtin interface. 



Modified: pypy/branch/dist-interpapp/lib-python-2.3.4/test/conftest.py
==============================================================================
--- pypy/branch/dist-interpapp/lib-python-2.3.4/test/conftest.py	(original)
+++ pypy/branch/dist-interpapp/lib-python-2.3.4/test/conftest.py	Fri Feb 18 17:47:39 2005
@@ -59,9 +59,10 @@
     mod = PyPyModule(space, w_dottedname) 
     w_globals = mod.w_dict 
     w_filename = space.wrap(str(filepath)) 
-    space.builtin.execfile(w_filename, w_globals, w_globals) 
+    w_execfile = space.builtin.get('execfile') 
+    space.call_function(w_execfile, w_filename, w_globals, w_globals)
     w_mod = space.wrap(mod) 
-    w_modules = space.getitem(space.sys.w_dict, space.wrap('modules'))
+    w_modules = space.sys.get('modules') 
     space.setitem(w_modules, w_dottedname, w_mod) 
     return w_mod 
 



More information about the Pypy-commit mailing list