New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

test_math and test_cmath fail on OpenBSD 6.1.
======================================================================
FAIL: test_testfile (test.test_math.MathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython3.7/Lib/test/test_math.py", line 1349, in 
test_testfile
    '\n  '.join(failures))
AssertionError: Failures in test_testfile:
  tan0064: tan(1.5707963267948961): expected 1978937966095219.0, got 
1978945885716843.0 (error = 7.92e+09 (31678486496 ulps); permitted error = 0 or 
5 ulps)

----------------------------------------------------------------------

======================================================================
FAIL: test_specific_values (test.test_cmath.CMathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython3.7/Lib/test/test_cmath.py", line 418, in 
test_specific_values
    msg=error_message)
  File "/home/serhiy/py/cpython3.7/Lib/test/test_cmath.py", line 149, in 
rAssertAlmostEqual
    '{!r} and {!r} are not sufficiently close'.format(a, b))
AssertionError: tan0064: tan(complex(1.5707963267948961, 0.0))
Expected: complex(1978937966095219.0, 0.0)
Received: complex(1978945885716843.0, 0.0)
Received value insufficiently close to expected value.

----------------------------------------------------------------------

Similar issue is issue27953.

----------
components: Extension Modules
messages: 303311
nosy: mark.dickinson, serhiy.storchaka
priority: normal
severity: normal
status: open
title: math.tan has poor accuracy near pi/2 on OpenBSD
type: behavior

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31630>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to