summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/test_mixed.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_mixed.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_mixed.py')
-rw-r--r--numpy/f2py/tests/test_mixed.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/f2py/tests/test_mixed.py b/numpy/f2py/tests/test_mixed.py
index 28268ecc0..0337538ff 100644
--- a/numpy/f2py/tests/test_mixed.py
+++ b/numpy/f2py/tests/test_mixed.py
@@ -25,7 +25,7 @@ class TestMixed(util.F2PyTest):
@pytest.mark.slow
def test_docstring(self):
- expected = """
+ expected = textwrap.dedent("""\
a = bar11()
Wrapper for ``bar11``.
@@ -33,6 +33,5 @@ class TestMixed(util.F2PyTest):
Returns
-------
a : int
- """
- assert_equal(self.module.bar11.__doc__,
- textwrap.dedent(expected).lstrip())
+ """)
+ assert_equal(self.module.bar11.__doc__, expected)