[pypy-svn] r36005 - pypy/dist/pypy/rpython/test

arigo at codespeak.net arigo at codespeak.net
Wed Dec 27 19:54:14 CET 2006


Author: arigo
Date: Wed Dec 27 19:54:12 2006
New Revision: 36005

Modified:
   pypy/dist/pypy/rpython/test/test_controllerentry.py
Log:
A (skipped) failing test showing a messy issue in convert_const().


Modified: pypy/dist/pypy/rpython/test/test_controllerentry.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_controllerentry.py	(original)
+++ pypy/dist/pypy/rpython/test/test_controllerentry.py	Wed Dec 27 19:54:12 2006
@@ -1,3 +1,4 @@
+import py
 from pypy.rpython.controllerentry import Controller, ControllerEntry
 from pypy.rpython.controllerentry import ControllerEntryForPrebuilt
 
@@ -61,6 +62,19 @@
 c3 = C()
 c3._bar = 7654
 
+def fun1():
+    return c2.foo
+
+def test_C1_annotate():
+    a = RPythonAnnotator()
+    s = a.build_types(fun1, [])
+    assert s.const == "512"
+
+def test_C1_specialize():
+    py.test.skip("argh! what can we do about it?")
+    res = interpret(fun1, [])
+    assert ''.join(res.chars) == "512"
+
 def fun2(flag):
     if flag:
         c = c2



More information about the Pypy-commit mailing list