[pypy-svn] r46273 - pypy/branch/pypy-more-rtti-inprogress/rpython/test

arigo at codespeak.net arigo at codespeak.net
Mon Sep 3 14:11:59 CEST 2007


Author: arigo
Date: Mon Sep  3 14:11:56 2007
New Revision: 46273

Modified:
   pypy/branch/pypy-more-rtti-inprogress/rpython/test/test_llann.py
Log:
A test showing an annotation crash.  Annoying.


Modified: pypy/branch/pypy-more-rtti-inprogress/rpython/test/test_llann.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/rpython/test/test_llann.py	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/rpython/test/test_llann.py	Mon Sep  3 14:11:56 2007
@@ -315,7 +315,25 @@
         s = self.annotate(llf, [annmodel.SomeInteger()])
         assert s.unsigned == True
 
- 
+    def test_pbctype(self):
+        py.test.skip("annotation crash")
+        TYPE = Void
+        TYPE2 = Signed
+        def g(lst):
+            n = lst[0]
+            if isinstance(TYPE, Number):
+                result = 123
+            else:
+                result = 456
+            if isinstance(TYPE2, Number):
+                result += 1
+            return result + n
+        def llf():
+            lst = [5]
+            g(lst)
+            lst.append(6)
+        self.annotate(llf, [])
+
 def test_pseudohighlevelcallable():
     t = TranslationContext()
     t.buildannotator()


More information about the pypy-svn mailing list