diff options
Diffstat (limited to 'Lib/test/test_math.py')
| -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 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):  | 
