[pypy-commit] pypy default: ignore "L" in int repr comparison (win64 related)

ctismer noreply at buildbot.pypy.org
Tue Mar 13 06:55:38 CET 2012


Author: Christian Tismer <tismer at stackless.com>
Branch: 
Changeset: r53417:2c293c823cd9
Date: 2012-03-12 22:55 -0700
http://bitbucket.org/pypy/pypy/changeset/2c293c823cd9/

Log:	ignore "L" in int repr comparison (win64 related)

diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -58,7 +58,8 @@
         w_res = pyco_expr.exec_host_bytecode(w_dict, w_dict)
         res = space.str_w(space.repr(w_res))
         if not isinstance(expected, float):
-            assert res == repr(expected)
+            noL = lambda expr: expr.replace('L', '')
+            assert noL(res) == noL(repr(expected))
         else:
             # Float representation can vary a bit between interpreter
             # versions, compare the numbers instead.


More information about the pypy-commit mailing list