diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-08-28 09:39:56 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2019-04-10 23:35:46 -0700 |
commit | 1f3a43d9450189088ba8224b18d60b0efa8cbd81 (patch) | |
tree | 2f7a157dbc45641cbe2fb514f0ba7f3b388d6c6a /numpy/f2py/tests/test_mixed.py | |
parent | d7a73f8c700edcf150d59a570e0173b60f84c7a7 (diff) | |
download | numpy-1f3a43d9450189088ba8224b18d60b0efa8cbd81.tar.gz |
MAINT: Use textwrap.dedent in f2py tests
Don't touch the fortran files, since indentation is signficant there and it makes things more error-prone
Diffstat (limited to 'numpy/f2py/tests/test_mixed.py')
-rw-r--r-- | numpy/f2py/tests/test_mixed.py | 7 |
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) |