[Python-checkins] r75157 - python/trunk/Lib/test/test_math.py
mark.dickinson
python-checkins at python.org
Wed Sep 30 18:58:02 CEST 2009
Author: mark.dickinson
Date: Wed Sep 30 18:58:01 2009
New Revision: 75157
Log:
Fix buggy accuracy test
Modified:
python/trunk/Lib/test/test_math.py
Modified: python/trunk/Lib/test/test_math.py
==============================================================================
--- python/trunk/Lib/test/test_math.py (original)
+++ python/trunk/Lib/test/test_math.py Wed Sep 30 18:58:01 2009
@@ -958,7 +958,7 @@
continue
if not math.isnan(expected) and not math.isnan(got):
diff_ulps = to_ulps(expected) - to_ulps(got)
- if diff_ulps <= ALLOWED_ERROR:
+ if abs(diff_ulps) <= ALLOWED_ERROR:
continue
if isinstance(got, str) and isinstance(expected, str):
More information about the Python-checkins
mailing list