[pypy-svn] rev 620 - pypy/trunk/src/pypy/interpreter/test
mwh at codespeak.net
mwh at codespeak.net
Wed May 28 15:56:12 CEST 2003
Author: mwh
Date: Wed May 28 15:56:11 2003
New Revision: 620
Modified:
pypy/trunk/src/pypy/interpreter/test/test_executioncontext.py
Log:
make work with stdobjspace
Modified: pypy/trunk/src/pypy/interpreter/test/test_executioncontext.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/test/test_executioncontext.py (original)
+++ pypy/trunk/src/pypy/interpreter/test/test_executioncontext.py Wed May 28 15:56:11 2003
@@ -11,9 +11,9 @@
space = testsupport.objspace()
ec = executioncontext.ExecutionContext(space)
compile = space.builtin.compile
- bytecode = compile(space.wrap('def f(x): return x+1'),
- space.wrap('<string>'),
- space.wrap('exec')).co_consts[0]
+ bytecode = space.unwrap(compile(space.wrap('def f(x): return x+1'),
+ space.wrap('<string>'),
+ space.wrap('exec'))).co_consts[0]
w_globals = ec.make_standard_w_globals()
w_locals = space.newdict([(space.wrap('x'), space.wrap(5))])
frame = PyFrame(space, bytecode, w_globals, w_locals)
More information about the Pypy-commit
mailing list