Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_math.py @ 56307:5f245da72aeb legacy-trunk
Fix buggy accuracy test
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Wed, 30 Sep 2009 16:58:01 +0000 |
| parents | b50dd17dfe26 |
| children | 624f81b5ec24 |
line wrap: on
line diff
--- a/Lib/test/test_math.py Tue Sep 29 21:56:31 2009 +0000 +++ b/Lib/test/test_math.py Wed Sep 30 16:58:01 2009 +0000 @@ -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):
