[pypy-svn] r28154 - pypy/dist/pypy/rpython/test
nik at codespeak.net
nik at codespeak.net
Sat Jun 3 13:39:34 CEST 2006
Author: nik
Date: Sat Jun 3 13:39:33 2006
New Revision: 28154
Modified:
pypy/dist/pypy/rpython/test/test_rpbc.py
Log:
(fijal, nik)
a test failing for ootypesystem, discovered by maciek.
Modified: pypy/dist/pypy/rpython/test/test_rpbc.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_rpbc.py (original)
+++ pypy/dist/pypy/rpython/test/test_rpbc.py Sat Jun 3 13:39:33 2006
@@ -454,6 +454,21 @@
res = self.interpret(f, [7])
assert res == 42
+ def test_simple_function_pointer(self):
+ py.test.skip("a problem with ootypesystem")
+ def f1(x):
+ return x + 1
+ def f2(x):
+ return x + 2
+
+ l = [f1, f2]
+
+ def pointersimple(i):
+ return l[i](i)
+
+ res = self.interpret(pointersimple, [1])
+ assert res == 3
+
def test_classdef_getattr(self):
class A:
myvalue = 123
More information about the Pypy-commit
mailing list