[pypy-svn] rev 2648 - pypy/trunk/src/pypy/appspace

pmaupin at codespeak.net pmaupin at codespeak.net
Sat Dec 20 14:46:22 CET 2003


Author: pmaupin
Date: Sat Dec 20 14:46:21 2003
New Revision: 2648

Modified:
   pypy/trunk/src/pypy/appspace/support_tests.py
Log:
Don't use coerce() in support_tests -- not supported

Modified: pypy/trunk/src/pypy/appspace/support_tests.py
==============================================================================
--- pypy/trunk/src/pypy/appspace/support_tests.py	(original)
+++ pypy/trunk/src/pypy/appspace/support_tests.py	Sat Dec 20 14:46:21 2003
@@ -94,7 +94,7 @@
 def fcmp(x, y): # fuzzy comparison function
     if type(x) == type(0.0) or type(y) == type(0.0):
         try:
-            x, y = coerce(x, y)
+            x, y = float(x), float(y)
             fuzz = (abs(x) + abs(y)) * FUZZ
             if abs(x-y) <= fuzz:
                 return 0


More information about the Pypy-commit mailing list