[pypy-svn] r18666 - pypy/dist/pypy/translator/c/test
arigo at codespeak.net
arigo at codespeak.net
Sun Oct 16 10:32:10 CEST 2005
Author: arigo
Date: Sun Oct 16 10:32:09 2005
New Revision: 18666
Modified:
pypy/dist/pypy/translator/c/test/test_typed.py
Log:
Forgot to fix the test to use math.fmod() instead of %.
Modified: pypy/dist/pypy/translator/c/test/test_typed.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_typed.py (original)
+++ pypy/dist/pypy/translator/c/test/test_typed.py Sun Oct 16 10:32:09 2005
@@ -248,9 +248,10 @@
# floats
def test_float_operations(self):
+ import math
def func(x=float, y=float):
z = x + y / 2.1 * x
- z = z % 60.0
+ z = math.fmod(z, 60.0)
z = pow(z, 2)
z = -z
return int(z)
More information about the Pypy-commit
mailing list