[Numpy-discussion] numpy.test() failures

Nils Wagner nwagner@iam.uni-stuttgart...
Wed Dec 31 09:06:24 CST 2008


>>> numpy.__version__
'1.3.0.dev6283'

======================================================================
FAIL: Check formatting.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 74, in check_complex_type
     err_msg='Failed str formatting for type %s' % tp)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal: Failed str formatting for type <type 
'numpy.complex64'>
  ACTUAL: '(1e+10+0j)'
  DESIRED: '1e+10'

======================================================================
FAIL: Check formatting when using print
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 108, in check_float_type_print
     _test_redirected_print(float(x), tp)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 104, in _test_redirected_print
     err_msg='print failed for type%s' % tp)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal: print failed for type<type 
'numpy.float32'>
  ACTUAL: '10000000000.0\n'
  DESIRED: '1e+10\n'

======================================================================
FAIL: Check formatting when using print
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 115, in check_complex_type_print
     _test_redirected_print(complex(x), tp)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 104, in _test_redirected_print
     err_msg='print failed for type%s' % tp)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal: print failed for type<type 
'numpy.complex64'>
  ACTUAL: '(10000000000+0j)\n'
  DESIRED: '(1e+10+0j)\n'

======================================================================
FAIL: test_print.test_locale_single
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/decorators.py", 
line 82, in skipper
     return f(*args, **kwargs)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 164, in test_locale_single
     return _test_locale_independance(np.float32)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 157, in _test_locale_independance
     err_msg='Failed locale test for type %s' % tp)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal: Failed locale test for type <type 
'numpy.float32'>
  ACTUAL: '1,2'
  DESIRED: '1.2'

======================================================================
FAIL: test_print.test_locale_double
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/decorators.py", 
line 82, in skipper
     return f(*args, **kwargs)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 169, in test_locale_double
     return _test_locale_independance(np.double)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 157, in _test_locale_independance
     err_msg='Failed locale test for type %s' % tp)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal: Failed locale test for type <type 
'numpy.float64'>
  ACTUAL: '1,2'
  DESIRED: '1.2'

======================================================================
FAIL: test_print.test_locale_longdouble
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/decorators.py", 
line 82, in skipper
     return f(*args, **kwargs)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 174, in test_locale_longdouble
     return _test_locale_independance(np.longdouble)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/core/tests/test_print.py", 
line 157, in _test_locale_independance
     err_msg='Failed locale test for type %s' % tp)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal: Failed locale test for type <type 
'numpy.float128'>
  ACTUAL: '1,2'
  DESIRED: '1.2'

----------------------------------------------------------------------
Ran 1797 tests in 16.303s

FAILED (KNOWNFAIL=1, failures=6)
  


More information about the Numpy-discussion mailing list