From: Mark H. <ma...@hy...> - 2006-10-23 11:00:36
|
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=20 > test is designed to test for (so I guess it's working). The test was=20 > actually written wrong and was never failing because previously keyword= =20 > arguments to ufuncs were ignored.=20 >=20 > Can you show us what 'a' is on your platform. Hi, 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)=20 [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__ '1.0.dev3378' >>> N.array([1000],dtype=3DN.float).dtype dtype('float64') >>> N.array([1000],dtype=3DN.longfloat).dtype dtype('float128') >>> N.test() =2E..snip... FAIL: Ticket #112 ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sit= e-packages/numpy/core/tests/test_regression.py", line 220, in check_longflo= at_repr assert(str(a)[1:9] =3D=3D str(a[0])[:8]) AssertionError >>> a =3D N.exp(N.array([1000],dtype=3DN.longfloat)) >>> str(a) '[inf]' Any ideas about this? Mark --=20 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 |