summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-09-30 17:47:54 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-09-30 17:47:54 (GMT)
commit2d53bdecd89f1b5295b6aa65afe9843e86ec9c6f (patch)
treec534b16ee6526750c002e1aaf17a09d3fa338908 /Lib
parent2683ab04a6859681149d6c0851ece719fdc8237c (diff)
downloadcpython-2d53bdecd89f1b5295b6aa65afe9843e86ec9c6f.zip
cpython-2d53bdecd89f1b5295b6aa65afe9843e86ec9c6f.tar.gz
cpython-2d53bdecd89f1b5295b6aa65afe9843e86ec9c6f.tar.bz2
Merged revisions 75157 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75157 | mark.dickinson | 2009-09-30 17:58:01 +0100 (Wed, 30 Sep 2009) | 1 line Fix buggy accuracy test ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_math.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index f29bddd..6d06fef 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -955,7 +955,7 @@ class MathTests(unittest.TestCase):
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):