[pypy-svn] r44125 - pypy/branch/prolog-bytecode/pypy/rpython/lltypesystem/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Jun 10 19:40:52 CEST 2007
Author: cfbolz
Date: Sun Jun 10 19:40:51 2007
New Revision: 44125
Modified:
pypy/branch/prolog-bytecode/pypy/rpython/lltypesystem/test/test_rvirtualizable.py
Log:
failing test: you cannot have prebuilt instances of virtualizables.
Modified: pypy/branch/prolog-bytecode/pypy/rpython/lltypesystem/test/test_rvirtualizable.py
==============================================================================
--- pypy/branch/prolog-bytecode/pypy/rpython/lltypesystem/test/test_rvirtualizable.py (original)
+++ pypy/branch/prolog-bytecode/pypy/rpython/lltypesystem/test/test_rvirtualizable.py Sun Jun 10 19:40:51 2007
@@ -294,3 +294,19 @@
res = interp.eval_graph(graph, [23])
assert res == 2323
+
+def test_prebuilt_virtualizable_instance():
+ py.test.skip("breaks right now")
+ class A(object):
+ _virtualizable_ = True
+ def __init__(self, x):
+ self.x = x
+
+ a = A(32)
+
+ def f():
+ return a.x
+
+ res = interpret(f, [])
+ assert res == 32
+
More information about the Pypy-commit
mailing list