summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/test_callback.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-04-12 19:33:41 -0600
committerGitHub <noreply@github.com>2019-04-12 19:33:41 -0600
commitdea1239b6dcaf072fc9b70e6af0c0a100cead69e (patch)
tree223cc3d75875f8067a1ed535e21ae5ac67c2c1de /numpy/f2py/tests/test_callback.py
parentc73865c057d25c64cf434adfebc38b2e289bdf7c (diff)
parent1f3a43d9450189088ba8224b18d60b0efa8cbd81 (diff)
downloadnumpy-dea1239b6dcaf072fc9b70e6af0c0a100cead69e.tar.gz
Merge pull request #11829 from eric-wieser/f2py-dedent
MAINT: Use textwrap.dedent in f2py tests
Diffstat (limited to 'numpy/f2py/tests/test_callback.py')
-rw-r--r--numpy/f2py/tests/test_callback.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/tests/test_callback.py b/numpy/f2py/tests/test_callback.py
index 824ef7b0c..21c29ba5f 100644
--- a/numpy/f2py/tests/test_callback.py
+++ b/numpy/f2py/tests/test_callback.py
@@ -68,7 +68,7 @@ cf2py intent(out) a
@pytest.mark.slow
def test_docstring(self):
- expected = """
+ expected = textwrap.dedent("""\
a = t(fun,[fun_extra_args])
Wrapper for ``t``.
@@ -93,8 +93,8 @@ cf2py intent(out) a
def fun(): return a
Return objects:
a : int
- """
- assert_equal(self.module.t.__doc__, textwrap.dedent(expected).lstrip())
+ """)
+ assert_equal(self.module.t.__doc__, expected)
def check_function(self, name):
t = getattr(self.module, name)