[Numpy-svn] r5709 - trunk/numpy/testing

numpy-svn@scip... numpy-svn@scip...
Tue Aug 26 20:18:29 CDT 2008


Author: alan.mcintyre
Date: 2008-08-26 20:18:26 -0500 (Tue, 26 Aug 2008)
New Revision: 5709

Modified:
   trunk/numpy/testing/nosetester.py
Log:
Make _docmethod work correctly when run with -OO


Modified: trunk/numpy/testing/nosetester.py
===================================================================
--- trunk/numpy/testing/nosetester.py	2008-08-26 22:34:13 UTC (rev 5708)
+++ trunk/numpy/testing/nosetester.py	2008-08-27 01:18:26 UTC (rev 5709)
@@ -82,7 +82,8 @@
             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):



More information about the Numpy-svn mailing list