[SciPy-dev] Results of scipy.test(1,verbosity=10) in version 0.4.2

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed Oct 5 03:28:50 CDT 2005


Hi all,

scipy.test(1,verbosity=10) in version 0.4.2 results in 16 errors and 1
failure.

======================================================================
ERROR: check_simple
(scipy.base.shape_base.test_shape_base.test_apply_along_axis)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_shape_base.py",
line 14, in check_simple
    assert_array_equal(apply_along_axis(len,0,a),len(a)*ones(shape(a)[1]))
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/shape_base.py", line
31, in apply_along_axis
    res = func1d(arr[tuple(i)],*args)
IndexError: each subindex must be either a slice, an integer, Ellipsis,
or newaxis

======================================================================
ERROR: check_complex1 (scipy.base.type_check.test_type_check.test_isfinite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 162, in check_complex1
    assert_all(isfinite(array(1+1j)/0.) == 0)
ZeroDivisionError: complex division

======================================================================
ERROR: check_neginf_scalar
(scipy.base.type_check.test_type_check.test_isinf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 176, in check_neginf_scalar
    assert_all(isinf(array(-1.)/0.) == 1)
ZeroDivisionError: float division

======================================================================
ERROR: check_posinf_scalar
(scipy.base.type_check.test_type_check.test_isinf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 172, in check_posinf_scalar
    assert_all(isinf(array(1.,)/0.) == 1)
ZeroDivisionError: float division

======================================================================
ERROR: check_complex1 (scipy.base.type_check.test_type_check.test_isnan)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 142, in check_complex1
    assert_all(isnan(array(0+0j)/0.) == 1)
ZeroDivisionError: complex division

======================================================================
ERROR: check_generic (scipy.base.type_check.test_type_check.test_isneginf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 192, in check_generic
    vals = isneginf(array((-1.,0,1))/0.)
  File "/usr/local/lib/python2.4/site-packages/scipy/base/ufunclike.py",
line 40, in isneginf
    umath.logical_and(isinf(x), signbit(x), y)
NameError: global name 'umath' is not defined

======================================================================
ERROR: check_generic (scipy.base.type_check.test_type_check.test_isposinf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 185, in check_generic
    vals = isposinf(array((-1.,0,1))/0.)
  File "/usr/local/lib/python2.4/site-packages/scipy/base/ufunclike.py",
line 34, in isposinf
    umath.logical_and(isinf(x), ~signbit(x), y)
NameError: global name 'umath' is not defined

======================================================================
ERROR: check_default_1
(scipy.base.type_check.test_type_check.test_mintypecode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 18, in check_default_1
    assert_equal(mintypecode(itype),'d')
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/type_check.py", line
32, in mintypecode
    typecodes = [(type(t) is type('') and t) or asarray(t).dtypechar\
UnboundLocalError: local variable 'typecodes' referenced before assignment

======================================================================
ERROR: check_default_2
(scipy.base.type_check.test_type_check.test_mintypecode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 26, in check_default_2
    assert_equal(mintypecode(itype+'f'),'f')
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/type_check.py", line
32, in mintypecode
    typecodes = [(type(t) is type('') and t) or asarray(t).dtypechar\
UnboundLocalError: local variable 'typecodes' referenced before assignment

======================================================================
ERROR: check_default_3
(scipy.base.type_check.test_type_check.test_mintypecode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 50, in check_default_3
    assert_equal(mintypecode('fdF'),'D')
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/type_check.py", line
32, in mintypecode
    typecodes = [(type(t) is type('') and t) or asarray(t).dtypechar\
UnboundLocalError: local variable 'typecodes' referenced before assignment

======================================================================
ERROR: check_complex_bad
(scipy.base.type_check.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 211, in check_complex_bad
    v += array(0+1.j)/0.
ZeroDivisionError: complex division

======================================================================
ERROR: check_complex_bad2
(scipy.base.type_check.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 217, in check_complex_bad2
    v += array(-1+1.j)/0.
ZeroDivisionError: complex division

======================================================================
ERROR: check_complex_good
(scipy.base.type_check.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 207, in check_complex_good
    vals = nan_to_num(1+1j)
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/type_check.py", line
95, in nan_to_num
    y = nan_to_num(x.real) + 1j * nan_to_num(x.imag)
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/type_check.py", line
98, in nan_to_num
    are_inf = isposinf(y)
  File "/usr/local/lib/python2.4/site-packages/scipy/base/ufunclike.py",
line 34, in isposinf
    umath.logical_and(isinf(x), ~signbit(x), y)
NameError: global name 'umath' is not defined

======================================================================
ERROR: check_generic (scipy.base.type_check.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 199, in check_generic
    vals = nan_to_num(array((-1.,0,1))/0.)
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/type_check.py", line
98, in nan_to_num
    are_inf = isposinf(y)
  File "/usr/local/lib/python2.4/site-packages/scipy/base/ufunclike.py",
line 34, in isposinf
    umath.logical_and(isinf(x), ~signbit(x), y)
NameError: global name 'umath' is not defined

======================================================================
ERROR: check_integer (scipy.base.type_check.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 204, in check_integer
    vals = nan_to_num(1)
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/type_check.py", line
98, in nan_to_num
    are_inf = isposinf(y)
  File "/usr/local/lib/python2.4/site-packages/scipy/base/ufunclike.py",
line 34, in isposinf
    umath.logical_and(isinf(x), ~signbit(x), y)
NameError: global name 'umath' is not defined

======================================================================
ERROR: check_basic
(scipy.base.type_check.test_type_check.test_real_if_close)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 230, in check_basic
    b = real_if_close(a+1e-15j)
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/type_check.py", line
116, in real_if_close
    tol = f.epsilon * tol
AttributeError: 'finfo' object has no attribute 'epsilon'

======================================================================
FAIL: check_neginf (scipy.base.type_check.test_type_check.test_isinf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 174, in check_neginf
    assert_all(isinf(array((-1.,))/0.) == 1)
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 12, in assert_all
    assert(all(x)), x
AssertionError: [False]

----------------------------------------------------------------------
Ran 122 tests in 0.268s

FAILED (failures=1, errors=16)
<unittest.TextTestRunner object at 0x4040f02c>

 




More information about the Scipy-dev mailing list