[NumPy-Tickets] [NumPy] #1926: test_umath_complex fails under OS X Lion
NumPy Trac
numpy-tickets@scipy....
Fri Aug 5 08:24:38 CDT 2011
#1926: test_umath_complex fails under OS X Lion
------------------------+---------------------------------------------------
Reporter: RuiPereira | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: 1.6.0
Keywords: |
------------------------+---------------------------------------------------
8 tests related to umath_complex fail when testing numpy 1.6.1 under OS X
Lion. The same tests fail with numpy 1.5.1 shipped with the system as well
as with the most recent HEAD from github.
{{{
python -c "import numpy; numpy.test()"
Running unit tests for numpy
NumPy version 1.6.1
NumPy is installed in /Library/Python/2.7/site-packages/numpy
Python version 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based
on Apple Inc. build 5658) (LLVM build 2335.15.00)]
nose version 1.0.0
}}}
(...)
{{{
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, 1,
inf, inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 187, in
runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-
packages/numpy/core/tests/test_umath_complex.py", line 578, in
check_complex_value
assert_equal(f(z1), z2)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
256, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
707, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
605, in assert_array_compare
chk_same_position(x_id, y_id, hasval='nan')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
588, in chk_same_position
raise AssertionError(msg)
AssertionError:
Arrays are not equal
x and y nan location mismatch:
x: array([ nan+infj])
y: array((inf+infj))
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, -1,
inf, inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 187, in
runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-
packages/numpy/core/tests/test_umath_complex.py", line 578, in
check_complex_value
assert_equal(f(z1), z2)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
256, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
707, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
605, in assert_array_compare
chk_same_position(x_id, y_id, hasval='nan')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
588, in chk_same_position
raise AssertionError(msg)
AssertionError:
Arrays are not equal
x and y nan location mismatch:
x: array([ nan+infj])
y: array((inf+infj))
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
0.0, inf, inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 187, in
runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-
packages/numpy/core/tests/test_umath_complex.py", line 578, in
check_complex_value
assert_equal(f(z1), z2)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
256, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
707, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
605, in assert_array_compare
chk_same_position(x_id, y_id, hasval='nan')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
588, in chk_same_position
raise AssertionError(msg)
AssertionError:
Arrays are not equal
x and y nan location mismatch:
x: array([ nan+infj])
y: array((inf+infj))
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
-0.0, inf, inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 187, in
runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-
packages/numpy/core/tests/test_umath_complex.py", line 578, in
check_complex_value
assert_equal(f(z1), z2)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
256, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
707, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
605, in assert_array_compare
chk_same_position(x_id, y_id, hasval='nan')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
588, in chk_same_position
raise AssertionError(msg)
AssertionError:
Arrays are not equal
x and y nan location mismatch:
x: array([ nan+infj])
y: array((inf+infj))
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
inf, inf, inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 187, in
runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-
packages/numpy/core/tests/test_umath_complex.py", line 578, in
check_complex_value
assert_equal(f(z1), z2)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
256, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
707, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
605, in assert_array_compare
chk_same_position(x_id, y_id, hasval='nan')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
588, in chk_same_position
raise AssertionError(msg)
AssertionError:
Arrays are not equal
x and y nan location mismatch:
x: array([ nan+infj])
y: array((inf+infj))
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
-inf, inf, inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 187, in
runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-
packages/numpy/core/tests/test_umath_complex.py", line 578, in
check_complex_value
assert_equal(f(z1), z2)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
256, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
707, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
605, in assert_array_compare
chk_same_position(x_id, y_id, hasval='nan')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
588, in chk_same_position
raise AssertionError(msg)
AssertionError:
Arrays are not equal
x and y nan location mismatch:
x: array([ nan+infj])
y: array((inf+infj))
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
nan, inf, inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 187, in
runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-
packages/numpy/core/tests/test_umath_complex.py", line 578, in
check_complex_value
assert_equal(f(z1), z2)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
256, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
707, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
605, in assert_array_compare
chk_same_position(x_id, y_id, hasval='nan')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
588, in chk_same_position
raise AssertionError(msg)
AssertionError:
Arrays are not equal
x and y nan location mismatch:
x: array([ nan+infj])
y: array((inf+infj))
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
-inf, 1, 0.0, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 187, in
runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-
packages/numpy/core/tests/test_umath_complex.py", line 578, in
check_complex_value
assert_equal(f(z1), z2)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
256, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
707, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
605, in assert_array_compare
chk_same_position(x_id, y_id, hasval='nan')
File "/Library/Python/2.7/site-packages/numpy/testing/utils.py", line
588, in chk_same_position
raise AssertionError(msg)
AssertionError:
Arrays are not equal
x and y nan location mismatch:
x: array([ nan+infj])
y: array(infj)
----------------------------------------------------------------------
Ran 3533 tests in 22.955s
FAILED (KNOWNFAIL=3, SKIP=2, failures=8)
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1926>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list