summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-08-27 01:18:26 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-08-27 01:18:26 +0000
commitd495708ee0be06f1be32c0c578c882bc48d4f5a2 (patch)
tree82050e56963baf89323e935b80dd51a2927ef770 /numpy
parentedc1465f70cf97c06c374b77747d8485fbc8ca24 (diff)
downloadnumpy-d495708ee0be06f1be32c0c578c882bc48d4f5a2.tar.gz
Make _docmethod work correctly when run with -OO
Diffstat (limited to 'numpy')
-rw-r--r--numpy/testing/nosetester.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index ee682967c..2afb3e186 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -82,7 +82,8 @@ def _docmethod(meth, testtype):
List with any extra args to pass to nosetests''' \
% {'testtype': testtype}
- meth.__doc__ = meth.__doc__ % {'test_header':test_header}
+ if meth.__doc__:
+ meth.__doc__ = meth.__doc__ % {'test_header':test_header}
class NoseTester(object):