[Numpy-discussion] ValueError: Unknown format code 'g' for object of type 'str'

Nils Wagner nwagner@iam.uni-stuttgart...
Sat Mar 26 05:34:53 CDT 2011


>>> numpy.__version__
'2.0.0.dev-10db259'

======================================================================
ERROR: Test the str.format method with NumPy scalar types
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py", 
line 183, in runTest
     self.test(*self.arg)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/decorators.py", 
line 146, in skipper_func
     return f(*args, **kwargs)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/numpy/core/tests/test_print.py", 
line 223, in test_scalar_format
     assert_equal(fmat.format(val), 
fmat.format(valtype(val)),
ValueError: Unknown format code 'g' for object of type 
'str'

  


More information about the NumPy-Discussion mailing list