[Numpy-discussion] Possible test failure on Debian 6 with Python 2.6

Chris Ball s0454615@sms.ed.ac...
Sun Jul 15 16:00:42 CDT 2012


Hi,

I'm trying to set up various build machines. Some of these are with 
ShiningPanda.com, which provides a 64-bit Debian 6 machine (as well as Windows 
7). This machine has multiple versions of Python installed. 

Using the build procedure below, I see a test failure with Python 2.6 (and 2.7) 
but not 2.5 (and 2.4). Any ideas? I guess other people are testing on Debian 6, 
and if they don't see the test failure with Python 2.6 maybe there's something 
unusual about the setup of this machine.

Build procedure:

$ python setup.py build install --prefix=./numpy-install
$ cd numpy-install
$ export PYTHONPATH=/path/to/numpy-install/lib/python2.6/site-packages
$ python ../tools/test-installed-numpy.py --coverage -- --with-xunit

Test error:

======================================================================
ERROR: test_multiarray.TestNewBufferProtocol.test_roundtrip
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/slave/jenkins/shiningpanda/jobs/51551925/virtualenvs/d41d8cd9/lib/python2
.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/slave/jenkins/workspace/NumPy-Debian6_x64-py26/numpy-
install/lib/python2.6/site-packages/numpy/core/tests/test_multiarray.py", line 
2537, in test_roundtrip
    assert_raises(ValueError, self._check_roundtrip, x)
  File "/home/slave/jenkins/workspace/NumPy-Debian6_x64-py26/numpy-
install/lib/python2.6/site-packages/numpy/testing/utils.py", line 1018, in 
assert_raises
    return nose.tools.assert_raises(*args,**kwargs)
  File "/sp/lib/python/cpython-2.6/lib/python2.6/unittest.py", line 336, in 
failUnlessRaises
    callableObj(*args, **kwargs)
  File "/home/slave/jenkins/workspace/NumPy-Debian6_x64-py26/numpy-
install/lib/python2.6/site-packages/numpy/core/tests/test_multiarray.py", line 
2471, in _check_roundtrip
    y = np.asarray(x)
RuntimeWarning: tp_compare didn't return -1 or -2 for exception

[...]

Ran 4781 tests in 68.179s

FAILED (KNOWNFAIL=4, SKIP=6, errors=1)


The full build and test output is here:
https://jenkins.shiningpanda.com/scipy/job/NumPy-Debian6_x64-py26/8/consoleFull

For comparison, with Python 2.5:
https://jenkins.shiningpanda.com/scipy/job/NumPy-Debian6_x64-py25/9/consoleFull



More information about the NumPy-Discussion mailing list