[Numpy-discussion] numpy.tests() FAILED (errors=3)

Xavier Gnata gnata@obs.univ-lyon1...
Sun Feb 4 16:52:46 CST 2007


Hi,

I'm using numpy svn and running numpy.test().

The error log is the following :

======================================================================
ERROR: check_complex_bad (numpy.lib.tests.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_type_check.py",
line 245, in check_complex_bad
    vals = nan_to_num(v)
  File "/usr/lib/python2.4/site-packages/numpy/lib/type_check.py", line
132, in nan_to_num
    are_inf = isposinf(y)
  File "/usr/lib/python2.4/site-packages/numpy/lib/ufunclike.py", line
33, in isposinf
    umath.logical_and(isinf(x), ~signbit(x), y)
TypeError: function not supported for these types, and can't coerce
safely to supported types

======================================================================
ERROR: check_complex_bad2 (numpy.lib.tests.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_type_check.py",
line 253, in check_complex_bad2
    vals = nan_to_num(v)
  File "/usr/lib/python2.4/site-packages/numpy/lib/type_check.py", line
132, in nan_to_num
    are_inf = isposinf(y)
  File "/usr/lib/python2.4/site-packages/numpy/lib/ufunclike.py", line
33, in isposinf
    umath.logical_and(isinf(x), ~signbit(x), y)
TypeError: function not supported for these types, and can't coerce
safely to supported types

======================================================================
ERROR: check_complex_good (numpy.lib.tests.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_type_check.py",
line 238, in check_complex_good
    vals = nan_to_num(1+1j)
  File "/usr/lib/python2.4/site-packages/numpy/lib/type_check.py", line
132, in nan_to_num
    are_inf = isposinf(y)
  File "/usr/lib/python2.4/site-packages/numpy/lib/ufunclike.py", line
33, in isposinf
    umath.logical_and(isinf(x), ~signbit(x), y)
TypeError: function not supported for these types, and can't coerce
safely to supported types

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

It should be a side effect of one patch because I can read things like "
# !! This is actually (unexpectedly) zero" in
/usr/lib/python2.4/site-packages/numpy/lib/tests/test_type_check.py

Xavier.

-- 
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: gnata@obs.univ-lyon1.fr
############################################ 



More information about the Numpy-discussion mailing list