New submission from Ned Deily <[email protected]>:
======================================================================
FAIL: testAtanSign (test.test_cmath.CMathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_cmath.py",
line 526, in testAtanSign
self.assertComplexIdentical(cmath.atan(z), z)
File
"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_cmath.py",
line 96, in assertComplexIdentical
self.assertFloatIdentical(x.imag, y.imag)
File
"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_cmath.py",
line 86, in assertFloatIdentical
self.fail(msg.format(x, y))
AssertionError: floats -0.0 and 0.0 are not identical: zeros have different
signs
======================================================================
FAIL: testAtanhSign (test.test_cmath.CMathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_cmath.py",
line 533, in testAtanhSign
self.assertComplexIdentical(cmath.atanh(z), z)
File
"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_cmath.py",
line 95, in assertComplexIdentical
self.assertFloatIdentical(x.real, y.real)
File
"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_cmath.py",
line 86, in assertFloatIdentical
self.fail(msg.format(x, y))
AssertionError: floats 0.0 and -0.0 are not identical: zeros have different
signs
======================================================================
FAIL: test_specific_values (test.test_cmath.CMathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_cmath.py",
line 382, in test_specific_values
msg=error_message)
File
"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_cmath.py",
line 128, in rAssertAlmostEqual
'got {!r}'.format(a, b))
AssertionError: atan1000: atan(complex(-0.0, 0.0))
Expected: complex(-0.0, 0.0)
Received: complex(-0.0, -0.0)
Received value insufficiently close to expected value.
----------------------------------------------------------------------
Failures seen across various compilers and deployment targets and running the
tests with the same binaries on earlier OS X versions do not fail.
FWIW, the Apple-supplied Python 2.7.2 in 10.8 (that's the most recent version
supplied) also has a test_cmath failure:
======================================================================
FAIL: test_specific_values (test.test_cmath.CMathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/test_cmath.py",
line 352, in test_specific_values
msg=error_message)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/test_cmath.py",
line 94, in rAssertAlmostEqual
'got {!r}'.format(a, b))
AssertionError: atan0000: atan(complex(0.0, 0.0))
Expected: complex(0.0, 0.0)
Received: complex(0.0, -0.0)
Received value insufficiently close to expected value.
----------------------------------------------------------------------
Is there any reason to not consider this a platform bug? If it is, what should
the bug report be?
----------
messages: 166642
nosy: mark.dickinson, ned.deily
priority: normal
severity: normal
status: open
title: test_cmath failures on OS X 10.8
versions: Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15477>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com