diff options
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/f2py/rules.py | 2 | ||||
| -rw-r--r-- | numpy/f2py/tests/test_callback.py | 2 | ||||
| -rw-r--r-- | numpy/f2py/tests/test_mixed.py | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py index 86dcaa8a1..982f8e5b3 100644 --- a/numpy/f2py/rules.py +++ b/numpy/f2py/rules.py @@ -259,7 +259,7 @@ routine_rules={ 'separatorsfor':sepdict, 'body':""" #begintitle# -static char doc_#apiname#[] = \"\\\n#docreturn##name#(#docsignatureshort#)\\\n\\\n\\n#docstrsigns#\"; +static char doc_#apiname#[] = \"\\\n#docreturn##name#(#docsignatureshort#)\\n\\nWrapper for ``#name#``.\\\n\\n#docstrsigns#\"; /* #declfortranroutine# */ static PyObject *#apiname#(const PyObject *capi_self, PyObject *capi_args, diff --git a/numpy/f2py/tests/test_callback.py b/numpy/f2py/tests/test_callback.py index 3ed6d1da5..4ee071690 100644 --- a/numpy/f2py/tests/test_callback.py +++ b/numpy/f2py/tests/test_callback.py @@ -43,6 +43,8 @@ cf2py intent(out) a assert_equal(self.module.t.__doc__, "a = t(fun,[fun_extra_args])\n" "\n" + "Wrapper for ``t``.\n" + "\n" "Parameters\n" "----------\n" "fun : call-back function\n" diff --git a/numpy/f2py/tests/test_mixed.py b/numpy/f2py/tests/test_mixed.py index 70a1d7c66..0263c528c 100644 --- a/numpy/f2py/tests/test_mixed.py +++ b/numpy/f2py/tests/test_mixed.py @@ -23,7 +23,7 @@ class TestMixed(util.F2PyTest): @dec.slow def test_docstring(self): assert_equal(self.module.bar11.__doc__, - "a = bar11()\n\nReturns\n-------\na : int\n") + "a = bar11()\n\nWrapper for ``bar11``.\n\nReturns\n-------\na : int\n") if __name__ == "__main__": import nose |
