mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Fix buggy accuracy test
This commit is contained in:
parent
657024cd26
commit
8ca7482cc9
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue