thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

numpy.test() fails after running scipy.test() (Trac #2191) #5981

Open numpy-gitbot opened 11 years ago

numpy-gitbot commented 11 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2191 on 2012-07-25 by trac user GeorgeSalt, assigned to unknown.

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import numpy, scipy numpy.test() Running unit tests for numpy NumPy version 1.6.2 NumPy is installed in /usr/local/lib/python2.7/dist-packages/numpy Python version 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] nose version 1.1.2

....................................................................

Ran 3568 tests in 14.237s

OK (KNOWNFAIL=5, SKIP=4)

> > > scipy.test() > > > Running unit tests for scipy > > > NumPy version 1.6.2 > > > NumPy is installed in /usr/local/lib/python2.7/dist-packages/numpy > > > SciPy version 0.10.1 > > > SciPy is installed in /usr/local/lib/python2.7/dist-packages/scipy > > > Python version 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] > > > nose version 1.1.2 > > > .................................................................... > > > Ran 5103 tests in 43.796s OK (KNOWNFAIL=13, SKIP=35) > > > numpy.test() Running unit tests for numpy NumPy version 1.6.2 NumPy is installed in /usr/local/lib/python2.7/dist-packages/numpy Python version 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] nose version 1.1.2 # .................................................................... ## FAIL: test_doctests (test_polynomial.TestDocs) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/numpy/lib/tests/test_polynomial.py", line 84, in test_doctests return rundocs() File "/usr/local/lib/python2.7/dist-packages/numpy/testing/utils.py", line 988, in rundocs raise AssertionError("Some doctests failed:\n%s" % "\n".join(msg)) AssertionError: Some doctests failed: --- File "/usr/local/lib/python2.7/dist-packages/numpy/lib/tests/test_polynomial.py", line 32, in test_polynomial Failed example: p / q Expected: (poly1d([ 0.33333333]), poly1d([ 1.33333333, 2.66666667])) Got: (poly1d([ 0.333]), poly1d([ 1.333, 2.667])) --- File "/usr/local/lib/python2.7/dist-packages/numpy/lib/tests/test_polynomial.py", line 54, in test_polynomial Failed example: p.integ() Expected: poly1d([ 0.33333333, 1. , 3. , 0. ]) Got: poly1d([ 0.333, 1. , 3. , 0. ]) --- File "/usr/local/lib/python2.7/dist-packages/numpy/lib/tests/test_polynomial.py", line 56, in test_polynomial Failed example: p.integ(1) Expected: poly1d([ 0.33333333, 1. , 3. , 0. ]) Got: poly1d([ 0.333, 1. , 3. , 0. ]) --- File "/usr/local/lib/python2.7/dist-packages/numpy/lib/tests/test_polynomial.py", line 58, in test_polynomial Failed example: p.integ(5) Expected: poly1d([ 0.00039683, 0.00277778, 0.025 , 0. , 0. , 0. , 0. , 0. ]) Got: poly1d([ 0. , 0.003, 0.025, 0. , 0. , 0. , 0. , 0. ]) --- Ran 3568 tests in 12.423s FAILED (KNOWNFAIL=5, SKIP=4, failures=1)
numpy-gitbot commented 11 years ago

atmention:rgommers wrote on 2012-07-26

I can reproduce this. The culprit looks like the line

set_printoptions(precision=3,linewidth=90)

in sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py. The same line is also present in bechmarks.py in the same dir.