In [2]: numpy.test() Running unit tests for numpy NumPy version 1.6.1 NumPy is installed in /Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy Python version 2.6.7 (r267:88850, Jul 24 2011, 00:21:50) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] nose version 1.0.0 ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.................................................................................................K......................K...........FFFFFFF...F./Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py:364: RuntimeWarning: invalid value encountered in sqrt z = np.sqrt(np.array(np.complex(-np.inf, np.nan))) ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S................................/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/linalg/linalg.py:1637: RuntimeWarning: invalid value encountered in divide sign *= multiply.reduce(d / absd) /Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/linalg/linalg.py:1638: RuntimeWarning: divide by zero encountered in log log(absd, absd) F.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... ====================================================================== FAIL: test_umath_complex.TestCsqrt.test_special_values(, 1, inf, inf, inf) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py", line 187, in runTest self.test(*self.arg) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py", line 578, in check_complex_value assert_equal(f(z1), z2) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 605, in assert_array_compare chk_same_position(x_id, y_id, hasval='nan') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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+inf*j)) ====================================================================== FAIL: test_umath_complex.TestCsqrt.test_special_values(, -1, inf, inf, inf) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py", line 187, in runTest self.test(*self.arg) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py", line 578, in check_complex_value assert_equal(f(z1), z2) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 605, in assert_array_compare chk_same_position(x_id, y_id, hasval='nan') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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+inf*j)) ====================================================================== FAIL: test_umath_complex.TestCsqrt.test_special_values(, 0.0, inf, inf, inf) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py", line 187, in runTest self.test(*self.arg) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py", line 578, in check_complex_value assert_equal(f(z1), z2) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 605, in assert_array_compare chk_same_position(x_id, y_id, hasval='nan') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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+inf*j)) ====================================================================== FAIL: test_umath_complex.TestCsqrt.test_special_values(, -0.0, inf, inf, inf) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py", line 187, in runTest self.test(*self.arg) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py", line 578, in check_complex_value assert_equal(f(z1), z2) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 605, in assert_array_compare chk_same_position(x_id, y_id, hasval='nan') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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+inf*j)) ====================================================================== FAIL: test_umath_complex.TestCsqrt.test_special_values(, inf, inf, inf, inf) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py", line 187, in runTest self.test(*self.arg) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py", line 578, in check_complex_value assert_equal(f(z1), z2) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 605, in assert_array_compare chk_same_position(x_id, y_id, hasval='nan') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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+inf*j)) ====================================================================== FAIL: test_umath_complex.TestCsqrt.test_special_values(, -inf, inf, inf, inf) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py", line 187, in runTest self.test(*self.arg) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py", line 578, in check_complex_value assert_equal(f(z1), z2) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 605, in assert_array_compare chk_same_position(x_id, y_id, hasval='nan') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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+inf*j)) ====================================================================== FAIL: test_umath_complex.TestCsqrt.test_special_values(, nan, inf, inf, inf) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py", line 187, in runTest self.test(*self.arg) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py", line 578, in check_complex_value assert_equal(f(z1), z2) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 605, in assert_array_compare chk_same_position(x_id, y_id, hasval='nan') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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+inf*j)) ====================================================================== FAIL: test_umath_complex.TestCsqrt.test_special_values(, -inf, 1, 0.0, inf) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py", line 187, in runTest self.test(*self.arg) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/tests/test_umath_complex.py", line 578, in check_complex_value assert_equal(f(z1), z2) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 605, in assert_array_compare chk_same_position(x_id, y_id, hasval='nan') File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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*j) ====================================================================== FAIL: test_zero (test_linalg.TestDet) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/linalg/tests/test_linalg.py", line 206, in test_zero assert_equal(linalg.det([[0.0]]), 0.0) File "/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/testing/utils.py", line 300, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: nan DESIRED: 0.0 ---------------------------------------------------------------------- Ran 3533 tests in 21.074s FAILED (KNOWNFAIL=3, SKIP=1, failures=9) Out[2]: