[Numpy-tickets] [NumPy] #894: -OO optimization fails with nosetester

NumPy numpy-tickets@scipy....
Tue Aug 26 19:46:19 CDT 2008

#894: -OO optimization fails with nosetester
 Reporter:  pierregm  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:  1.2.0   
Component:  Other     |     Version:  none    
 Severity:  normal    |    Keywords:          
 Looks like `nosetester.docmethod` fails when the docstring are explicitly
 suppressed with the -OO flag.

 python -OO -c "import numpy as np"

 Traceback (most recent call last):
   File "<string>", line 1, in ?
   File "/usr/lib64/python2.4/site-packages/numpy/__init__.py", line 125,
 in ?
     import add_newdocs
   File "/usr/lib64/python2.4/site-packages/numpy/add_newdocs.py", line 9,
 in ?
     from lib import add_newdoc
   File "/usr/lib64/python2.4/site-packages/numpy/lib/__init__.py", line 4,
 in ?
     from type_check import *
   File "/usr/lib64/python2.4/site-packages/numpy/lib/type_check.py", line
 8, in ?
     import numpy.core.numeric as _nx
   File "/usr/lib64/python2.4/site-packages/numpy/core/__init__.py", line
 34, in ?
     from numpy.testing import Tester
   File "/usr/lib64/python2.4/site-packages/numpy/testing/__init__.py",
 line 12, in ?
     from utils import *
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 9, in ?
     from nosetester import import_nose
   File "/usr/lib64/python2.4/site-packages/numpy/testing/nosetester.py",
 line 88, in ?
     class NoseTester(object):
   File "/usr/lib64/python2.4/site-packages/numpy/testing/nosetester.py",
 line 292, in NoseTester
     _docmethod(_test_argv, '(testtype)')
   File "/usr/lib64/python2.4/site-packages/numpy/testing/nosetester.py",
 line 85, in _docmethod
     meth.__doc__ = meth.__doc__ % {'test_header':test_header}
 TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'

 Note: I'm just kicking the baby from ticket #893...

Ticket URL: <http://scipy.org/scipy/numpy/ticket/894>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list