[pypy-svn] r4869 - pypy/branch/src-newobjectmodel/pypy/interpreter/test
hpk at codespeak.net
hpk at codespeak.net
Thu Jun 3 15:56:34 CEST 2004
Author: hpk
Date: Thu Jun 3 15:56:33 2004
New Revision: 4869
Modified:
pypy/branch/src-newobjectmodel/pypy/interpreter/test/test_gateway.py
Log:
fixed broken inter2app test that relied on __call__
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 15:56:33 2004
@@ -51,7 +51,13 @@
def g3(space, w_a, w_b):
return space.add(w_a, w_b)
app_g3 = gateway.interp2app(g3)
- self.assertEqual_w(app_g3(self.space, w('foo'), w('bar')), w('foobar'))
+ w_app_g3 = space.wrap(app_g3)
+ self.assertEqual_w(
+ space.call(w_app_g3,
+ space.newtuple(w('foo'), w('bar')), w('foobar'))
+ self.assertEqual_w(
+ 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