[pypy-svn] r52525 - pypy/branch/jit-hotpath/pypy/objspace/flow/test

arigo at codespeak.net arigo at codespeak.net
Fri Mar 14 19:06:14 CET 2008


Author: arigo
Date: Fri Mar 14 19:06:12 2008
New Revision: 52525

Modified:
   pypy/branch/jit-hotpath/pypy/objspace/flow/test/test_objspace.py
Log:
Report this minor problem as a skipped test.


Modified: pypy/branch/jit-hotpath/pypy/objspace/flow/test/test_objspace.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/objspace/flow/test/test_objspace.py	(original)
+++ pypy/branch/jit-hotpath/pypy/objspace/flow/test/test_objspace.py	Fri Mar 14 19:06:12 2008
@@ -873,6 +873,21 @@
             return i
         py.test.raises(TypeError, self.codetest, g)
 
+    def test_ordering_bug(self):
+        # eager constant propagation could make the flow space believe that
+        # there is an always-raising '1.0 / 0' operation.  Unsure how to
+        # fix this.
+        py.test.skip("minor bug")
+        def f(n, m):
+            x = 0
+            total = 0.0
+            while x < n:
+                if x > m:
+                    total += 1.0 / x
+                x = x + 1
+            return total
+        self.codetest(f)
+
 
 class TestFlowObjSpaceDelay(Base):
     def setup_class(cls):



More information about the Pypy-commit mailing list