[Numpy-discussion] test issue

Eric Firing efiring at hawaii.edu
Fri Dec 29 20:58:43 CST 2006


belinda thom wrote:
> Hello,
> 
> I've been going thru Dave Kuhlman's "SciPy Course Outline" (http:// 
> www.rexx.com/~dkuhlman/scipy_course_01.html) and found out about test  
> functions -- very cool. Except that on my end, not all tests pass  
> (appended below). Is this a problem for other people? Is it something  
> I should worry about?

Not a real problem.  The test has been commented out in svn with the 
notation:

#    Longfloat support is not consistent enough across
#     platforms for this test to be meaningful.

Eric

> 
> Here's my setup: Mac G5 w/OS X 10.4.8, using MacPython 2.4,  
> numpy.__version__ is 1.0, matplotlib.__version__ 0.87.7 and  
> Numeric.__version__ 24.2
> 
> Thanks,
> 
> --b
> 
> ==========
> 
> In [94]: import numpy
> 
> In [95]: numpy.test()
>    Found 13 tests for numpy.core.umath
>    Found 9 tests for numpy.lib.arraysetops
>    Found 3 tests for numpy.fft.helper
>    Found 1 tests for numpy.lib.ufunclike
>    Found 4 tests for numpy.ctypeslib
>    Found 2 tests for numpy.lib.polynomial
>    Found 8 tests for numpy.core.records
>    Found 26 tests for numpy.core.numeric
>    Found 5 tests for numpy.distutils.misc_util
>    Found 3 tests for numpy.lib.getlimits
>    Found 31 tests for numpy.core.numerictypes
>    Found 4 tests for numpy.core.scalarmath
>    Found 12 tests for numpy.lib.twodim_base
>    Found 47 tests for numpy.lib.shape_base
>    Found 4 tests for numpy.lib.index_tricks
>    Found 32 tests for numpy.linalg.linalg
>    Found 42 tests for numpy.lib.type_check
>    Found 184 tests for numpy.core.multiarray
>    Found 36 tests for numpy.core.ma
>    Found 10 tests for numpy.core.defmatrix
>    Found 41 tests for numpy.lib.function_base
>    Found 0 tests for __main__
> ........................................................................ 
> ........................................................................ 
> ........................................................................ 
> ........................................................................ 
> ........................................................................ 
> F....................................................................... 
> ........................................................................ 
> .............
> ======================================================================
> 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])
> AssertionError
> 
> ----------------------------------------------------------------------
> Ran 517 tests in 1.241s
> 
> FAILED (failures=1)
> <unittest.TextTestRunner object at 0x6194f30>
> 
> 
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion



More information about the Numpy-discussion mailing list