diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-30 16:58:01 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-30 16:58:01 (GMT) |
commit | 8ca7482cc93946e88ae09e16d076f5e556f2e701 (patch) | |
tree | 121fe00af31f06af681cc95e9eed04fd0823ae57 | |
parent | 657024cd26bb52f19029289beacccfcdfa9d437e (diff) | |
download | cpython-8ca7482cc93946e88ae09e16d076f5e556f2e701.zip cpython-8ca7482cc93946e88ae09e16d076f5e556f2e701.tar.gz cpython-8ca7482cc93946e88ae09e16d076f5e556f2e701.tar.bz2 |
Fix buggy accuracy test
-rw-r--r-- | Lib/test/test_math.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 8486b0b..2f45a1e 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -958,7 +958,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): |