Author: Maciej Fijalkowski <[email protected]>
Branch: fast-slowpath
Changeset: r65702:ccb3ce114fc2
Date: 2013-07-27 11:27 +0200
http://bitbucket.org/pypy/pypy/changeset/ccb3ce114fc2/

Log:    "Fix" this test.

diff --git a/rpython/translator/backendopt/test/test_all.py 
b/rpython/translator/backendopt/test/test_all.py
--- a/rpython/translator/backendopt/test/test_all.py
+++ b/rpython/translator/backendopt/test/test_all.py
@@ -48,6 +48,8 @@
 
     def translateopt(self, func, sig, **optflags):
         t = TranslationContext()
+        opts = {'translation.list_comprehension_operations': True}
+        t.config.set(**opts)
         t.buildannotator().build_types(func, sig)
         t.buildrtyper(type_system=self.type_system).specialize()
         if option.view:
@@ -61,7 +63,7 @@
         assert big() == 83
 
         t = self.translateopt(big, [], inline_threshold=HUGE_THRESHOLD,
-                              mallocs=True) 
+                              mallocs=True)
 
         big_graph = graphof(t, big)
         self.check_malloc_removed(big_graph)
@@ -128,7 +130,7 @@
             return res
 
         def g(x):
-            return s(100) + s(1) + x 
+            return s(100) + s(1) + x
 
         def idempotent(n1, n2):
             c = [i for i in range(n2)]
@@ -301,4 +303,4 @@
 class TestOOType(BaseTester):
     type_system = 'ootype'
     check_malloc_removed = OOTypeMallocRemovalTest.check_malloc_removed
-    
+
diff --git a/rpython/translator/backendopt/test/test_malloc.py 
b/rpython/translator/backendopt/test/test_malloc.py
--- a/rpython/translator/backendopt/test/test_malloc.py
+++ b/rpython/translator/backendopt/test/test_malloc.py
@@ -365,7 +365,7 @@
     def test_classattr_as_defaults(self):
         class Bar:
             foo = 41
-        
+
         def fn():
             x = Bar()
             x.foo += 1
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to