[Python-checkins] r75158 - in python/branches/py3k: Lib/test/test_math.py
mark.dickinson
python-checkins at python.org
Wed Sep 30 19:47:54 CEST 2009
Author: mark.dickinson
Date: Wed Sep 30 19:47:54 2009
New Revision: 75158
Log:
Merged revisions 75157 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75157 | mark.dickinson | 2009年09月30日 17:58:01 +0100 (2009年9月30日) | 1 line
Fix buggy accuracy test
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/test_math.py
Modified: python/branches/py3k/Lib/test/test_math.py
==============================================================================
--- python/branches/py3k/Lib/test/test_math.py (original)
+++ python/branches/py3k/Lib/test/test_math.py Wed Sep 30 19:47:54 2009
@@ -955,7 +955,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