[pypy-svn] r4874 - pypy/branch/src-newobjectmodel/pypy/interpreter/test
arigo at codespeak.net
arigo at codespeak.net
Thu Jun 3 17:04:44 CEST 2004
Author: arigo
Date: Thu Jun 3 17:04:43 2004
New Revision: 4874
Modified:
pypy/branch/src-newobjectmodel/pypy/interpreter/test/test_gateway.py
Log:
Fixed syntax errors.
Modified: pypy/branch/src-newobjectmodel/pypy/interpreter/test/test_gateway.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/interpreter/test/test_gateway.py (original)
+++ pypy/branch/src-newobjectmodel/pypy/interpreter/test/test_gateway.py Thu Jun 3 17:04:43 2004
@@ -47,17 +47,20 @@
self.assertEqual_w(g3(self.space, w('foo'), w('bar')), w('foobar'))
def test_interp2app(self):
- w = self.space.wrap
+ space = self.space
+ w = space.wrap
def g3(space, w_a, w_b):
return space.add(w_a, w_b)
app_g3 = gateway.interp2app(g3)
w_app_g3 = space.wrap(app_g3)
self.assertEqual_w(
space.call(w_app_g3,
- space.newtuple(w('foo'), w('bar')), w('foobar'))
+ space.newtuple([w('foo'), w('bar')]),
+ space.newdict([])),
+ w('foobar'))
self.assertEqual_w(
- space.call_function(w_app_g3,
- w('foo'), w('bar')), w('foobar'))
+ space.call_function(w_app_g3, w('foo'), w('bar')),
+ w('foobar'))
def test_importall(self):
w = self.space.wrap
More information about the Pypy-commit
mailing list