[Numpy-discussion] Test failures on 2.6

W Bradley Knox bradknox at cs.utexas.edu
Thu Nov 18 17:36:31 EST 2010


I'm having almost exactly the same problem, but with Python 2.6.1,
Numpy 1.2.1, and Nose 0.11.3. Nobody responded to TJ the first time
around, so any advice would be greatly appreciated.

Thanks,
Brad

----------------------------------------------------------------------
From: T J <tjhnson <at> gmail.com>
Subject: Test failures on 2.6
Newsgroups: gmane.comp.python.numeric.general
Date: 2008-10-05 20:53:22 GMT (2 years, 6 weeks, 1 day, 13 hours and
32 minutes ago)
Hi,

I'm getting a couple of test failures with Python 2.6, Numpy 1.2.0, Nose 0.10.4:

nose version 0.10.4
..........................................................................................................................................................................................................................................................................................................................................................................................................................................F................K....................................................................................................................................................................................................................................................................................................................................................................
 ..............................................................................................................................................................................................
 ......./share/home/me/usr/lib/python2.6/site-packages/numpy/lib/tests/test_io.py:68:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(c.readlines(),
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................./share/home/me/usr/lib/python2.6/site-packages/numpy/ma/tests/test_core.py:1315:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(store._mask, True)
/home/me/usr/lib/python2.6/site-packages/numpy/ma/tests/test_core.py:1322:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(store._mask, True)
/home/me/usr/lib/python2.6/site-packages/numpy/ma/tests/test_core.py:1989:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(test.mask, [0,1,0,0,0,0,0,0,0,0])
...............................................E................................................................................................................................................................................
======================================================================
ERROR: Tests the min/max functions with explicit outputs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/me/usr/lib/python2.6/site-packages/numpy/ma/tests/test_core.py",
line 653, in test_minmax_funcs_with_output
    result = npfunc(xm,axis=0,out=nout)
  File "/home/me/usr/lib/python2.6/site-packages/numpy/core/fromnumeric.py",
line 1525, in amin
    return amin(axis, out)
  File "/home/me/usr/lib/python2.6/site-packages/numpy/ma/core.py",
line 2978, in min
    np.putmask(out, newmask, np.nan)
ValueError: cannot convert float NaN to integer

======================================================================
FAIL: test_umath.TestComplexFunctions.test_against_cmath
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/me/usr/lib/python2.6/site-packages/nose-0.10.4-py2.6.egg/nose/case.py",
line 182, in runTest
    self.test(*self.arg)
  File "/home/me/usr/lib/python2.6/site-packages/numpy/core/tests/test_umath.py",
line 268, in test_against_cmath
    assert abs(a - b) < atol, "%s %s: %s; cmath: %s"%(fname,p,a,b)
AssertionError: arcsin 2: (1.57079632679-1.31695789692j); cmath:
(1.57079632679+1.31695789692j)

----------------------------------------------------------------------
Ran 1726 tests in 8.856s

FAILED (KNOWNFAIL=1, errors=1, failures=1)
<nose.result.TextTestResult run=1726 errors=1 failures=1>



More information about the NumPy-Discussion mailing list