summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
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):