[SciPy-dev] Failures in current CVS version
Pearu Peterson
pearu at scipy.org
Wed Oct 1 15:39:45 CDT 2003
On Wed, 1 Oct 2003, Pearu Peterson wrote:
> Btw, I just run build scipy under Python 2.1 and there I get only one
> failure:
> ======================================================================
> FAIL: check_arange (test_basic.test_arange)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/usr/local/lib/python2.1/site-packages/scipy/special/tests/test_basic.py",
> line 474, in check_arange
> assert_array_equal(numstringa, array([3.,3.3,3.6,3.9]))
> File "/usr/lib/python2.1/site-packages/scipy_test/testing.py", line 390,
> in assert_array_equal
> assert alltrue(ravel(reduced)),\
> AssertionError:
> Arrays are not equal:
I investigated this a bit futher.. The problem was in Numeric.arange that
have different implementations in versions 21.0 (that I have under Python
2.1) and 23.1 (Python 2.3.1) and return a tiny bit different (but
noticable to above tests) results:
Python 2.1.3+ (#1, Jul 5 2003, 00:42:30)
[GCC 3.3.1 20030626 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> Numeric.__version__
'21.0'
>>> Numeric.arange(3,4,.3)[-1]
3.8999999999999995
Python 2.3.1 (#2, Sep 27 2003, 12:44:22)
[GCC 3.3.2 20030908 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> Numeric.__version__
'23.1'
>>> Numeric.arange(3,4,.3)[-1]
3.8999999999999999
On the other hand, why Numeric.arange is tested under scipy.special
anyway? I'd remove it from special/test_basic.py. Any objections?
Pearu
More information about the Scipy-dev
mailing list