Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-OO optimization fails with nosetester (Trac #894) #1492

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 1 comment
Closed

-OO optimization fails with nosetester (Trac #894) #1492

numpy-gitbot opened this issue Oct 19, 2012 · 1 comment

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/894 on 2008-08-27 by @pierregm, assigned to unknown.

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 #1491...

@numpy-gitbot
Copy link
Author

@alanmcintyre wrote on 2008-08-27

This should be fixed by r5710.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant