[NumPy-Tickets] [NumPy] #2191: numpy.test() fails after running scipy.test()

NumPy Trac numpy-tickets@scipy....
Wed Jul 25 11:19:43 CDT 2012


#2191: numpy.test() fails after running scipy.test()
------------------------+---------------------------------------------------
 Reporter:  GeorgeSalt  |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  1.6.1      
 Keywords:              |  
------------------------+---------------------------------------------------
 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)
 <nose.result.TextTestResult run=3568 errors=0 failures=0>

 >>> 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)
 <nose.result.TextTestResult run=5103 errors=0 failures=0>

 >>> 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)
 <nose.result.TextTestResult run=3568 errors=0 failures=1>

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2191>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list