[pypy-svn] r57836 - pypy/branch/oo-jit/pypy/rpython/test
antocuni at codespeak.net
antocuni at codespeak.net
Fri Sep 5 12:09:04 CEST 2008
Author: antocuni
Date: Fri Sep 5 12:09:03 2008
New Revision: 57836
Modified:
pypy/branch/oo-jit/pypy/rpython/test/test_rpbc.py
Log:
a test that shows a problem with r57808. Not sure if we should revert the
revision or fix the places that rely on the old behaviour
Modified: pypy/branch/oo-jit/pypy/rpython/test/test_rpbc.py
==============================================================================
--- pypy/branch/oo-jit/pypy/rpython/test/test_rpbc.py (original)
+++ pypy/branch/oo-jit/pypy/rpython/test/test_rpbc.py Fri Sep 5 12:09:03 2008
@@ -1594,6 +1594,17 @@
self.interpret(f, [int])
+ def test_specialize_singlefrozenpbc(self):
+ py.test.skip("r57808 makes this test fail, and llgraph tests rely on this")
+ from pypy.rlib.objectmodel import specialize
+ @specialize.arg(0)
+ def revealconst(T, x):
+ return lltype.cast_primitive(T, value)
+ def fn(x):
+ return revealconst(lltype.Signed, x)
+ res = self.interpret(fn, [42], backendopt=False)
+ assert res == 42
+
class TestLLtype(BaseTestRPBC, LLRtypeMixin):
pass
More information about the Pypy-commit
mailing list