[pypy-svn] r68095 - pypy/branch/floats-via-sse2/pypy/jit/backend/x86/test

fijal at codespeak.net fijal at codespeak.net
Thu Oct 1 13:02:14 CEST 2009


Author: fijal
Date: Thu Oct  1 13:02:14 2009
New Revision: 68095

Modified:
   pypy/branch/floats-via-sse2/pypy/jit/backend/x86/test/test_regalloc.py
Log:
Another missing abs


Modified: pypy/branch/floats-via-sse2/pypy/jit/backend/x86/test/test_regalloc.py
==============================================================================
--- pypy/branch/floats-via-sse2/pypy/jit/backend/x86/test/test_regalloc.py	(original)
+++ pypy/branch/floats-via-sse2/pypy/jit/backend/x86/test/test_regalloc.py	Thu Oct  1 13:02:14 2009
@@ -524,7 +524,7 @@
         ops.append('fail(f%d)' % (BASE_CONSTANT_SIZE * 2))
         ops = "\n".join(ops)
         self.interpret(ops, [0.1])
-        assert self.getfloat(0) - (1 + BASE_CONSTANT_SIZE * 2) * 3.5 + 0.1 < 0.00001
+        assert abs(self.getfloat(0) - (1 + BASE_CONSTANT_SIZE * 2) * 3.5 + 0.1) < 0.00001
 
     def test_lt_const(self):
         ops = '''



More information about the Pypy-commit mailing list