Commit 5824b0d5 authored by Mark Dickinson's avatar Mark Dickinson

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
........
parent a3bf9424
...@@ -955,7 +955,7 @@ class MathTests(unittest.TestCase): ...@@ -955,7 +955,7 @@ class MathTests(unittest.TestCase):
continue continue
if not math.isnan(expected) and not math.isnan(got): if not math.isnan(expected) and not math.isnan(got):
diff_ulps = to_ulps(expected) - to_ulps(got) diff_ulps = to_ulps(expected) - to_ulps(got)
if diff_ulps <= ALLOWED_ERROR: if abs(diff_ulps) <= ALLOWED_ERROR:
continue continue
if isinstance(got, str) and isinstance(expected, str): if isinstance(got, str) and isinstance(expected, str):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment