Unit test error with numpy rc3

Mark Hymers mark at hymers.org.uk
Mon Oct 23 05:50:27 CDT 2006

On Thu, 19, Oct, 2006 at 08:29:26AM -0600, Travis Oliphant spoke thus..
> Actually, you shouldn't be getting an INF at all.    This is what the 
> test is designed to test for (so I guess it's working).  The test was 
> actually written wrong and was never failing because previously keyword 
> arguments to ufuncs were ignored. 
> Can you show us what 'a' is on your platform.


I've just done a Mac OS X PPC build of the SVN trunk and am getting this
failure too.

nidesk046:~/scratch/upstream/scipy mark$ python
Python 2.4.1 (#2, Mar 31 2005, 00:05:10) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as N
>>> N.__version__
>>> N.array([1000],dtype=N.float).dtype
>>> N.array([1000],dtype=N.longfloat).dtype
>>> N.test()
FAIL: Ticket #112
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/tests/test_regression.py", line 220, in check_longfloat_repr
    assert(str(a)[1:9] == str(a[0])[:8])
>>> a = N.exp(N.array([1000],dtype=N.longfloat))
>>> str(a)

Any ideas about this?


Mark Hymers <mark at hymers dot org dot uk>

"I once absent-mindedly ordered Three Mile Island dressing in a restaurant
 and, with great presence of mind, they brought Thousand Island Dressing and
 a bottle of chili sauce."
     Terry Pratchett, alt.fan.pratchett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20061023/6e57ca87/attachment.bin 
-------------- next part --------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
-------------- next part --------------
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net

More information about the Numpy-discussion mailing list