[pypy-commit] pypy disable_merge_different_int_types: (arigo, bivab) fix test

bivab noreply at buildbot.pypy.org
Wed Nov 23 18:04:20 CET 2011


Author: David Schneider <david.schneider at picle.org>
Branch: disable_merge_different_int_types
Changeset: r49696:e1e61acee8d8
Date: 2011-11-23 17:20 +0100
http://bitbucket.org/pypy/pypy/changeset/e1e61acee8d8/

Log:	(arigo, bivab) fix test

diff --git a/pypy/translator/c/test/test_lltyped.py b/pypy/translator/c/test/test_lltyped.py
--- a/pypy/translator/c/test/test_lltyped.py
+++ b/pypy/translator/c/test/test_lltyped.py
@@ -476,12 +476,13 @@
         def f(n):
             result = ()
             for cls in classes:
+                nn = cls(n)
                 for OP in operators:
                     x = getmin(cls)
-                    res1 = OP(x, n)
+                    res1 = OP(x, nn)
                     result = result + (res1,)
                     x = getmax(cls)
-                    res1 = OP(x, n)
+                    res1 = OP(x, nn)
                     result = result + (res1,)
             return result
 


More information about the pypy-commit mailing list