[pypy-svn] r33864 - pypy/dist/pypy/translator/c/test

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Oct 30 10:13:23 CET 2006


Author: cfbolz
Date: Mon Oct 30 10:13:21 2006
New Revision: 33864

Modified:
   pypy/dist/pypy/translator/c/test/test_backendoptimized.py
Log:
propagate is gone


Modified: pypy/dist/pypy/translator/c/test/test_backendoptimized.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_backendoptimized.py	(original)
+++ pypy/dist/pypy/translator/c/test/test_backendoptimized.py	Mon Oct 30 10:13:21 2006
@@ -179,36 +179,6 @@
             y = ord(x)
             assert fn(y) == f(y)
 
-class TestOptimizedWithPropagate:
-
-    class CodeGenerator(_TestTypedTestCase):
-        def process(self, t):
-            _TestTypedTestCase.process(self, t)
-            self.t = t
-            backend_optimizations(t, propagate=True)
-
-    def test_typed_NULL(self):
-        class A(object):
-            def __init__(self):
-                self.next = None
-        def g(x):
-            a = A()
-            a.next = A()
-            a.x = x
-            a.next.x = x + 1
-        def f():
-            g(42)
-            a = A()
-            a.x = 43
-            if a.next is not None:
-                return a.next.x
-            return a.x - 1
-        codegenerator = self.CodeGenerator()
-        fn = codegenerator.getcompiled(f)
-        res = f()
-        assert res == 42
-
-
 
 class TestTypedOptimizedRaisingOps:
 



More information about the Pypy-commit mailing list