diff options
| author | Pauli Virtanen <pav@iki.fi> | 2012-11-17 20:52:08 +0200 |
|---|---|---|
| committer | Pauli Virtanen <pav@iki.fi> | 2012-11-17 20:52:08 +0200 |
| commit | 7b3e6fa5c8eb92eeab20bfbb6f4298d97396e103 (patch) | |
| tree | bd2f8b4176fbb3ea22d958a88686d1c17bbeb6e8 /numpy/f2py/tests/test_mixed.py | |
| parent | 4b500dd8dbeb6e1c02a32cbc7ab27b5f6db3331f (diff) | |
| download | numpy-7b3e6fa5c8eb92eeab20bfbb6f4298d97396e103.tar.gz | |
TST: f2py: rewrite strings to be easier to read
Diffstat (limited to 'numpy/f2py/tests/test_mixed.py')
| -rw-r--r-- | numpy/f2py/tests/test_mixed.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/numpy/f2py/tests/test_mixed.py b/numpy/f2py/tests/test_mixed.py index 0263c528c..f786f38dd 100644 --- a/numpy/f2py/tests/test_mixed.py +++ b/numpy/f2py/tests/test_mixed.py @@ -5,6 +5,7 @@ from numpy.testing import * from numpy import array import util +import textwrap def _path(*a): return os.path.join(*((os.path.dirname(__file__),) + a)) @@ -22,8 +23,16 @@ class TestMixed(util.F2PyTest): @dec.slow def test_docstring(self): - assert_equal(self.module.bar11.__doc__, - "a = bar11()\n\nWrapper for ``bar11``.\n\nReturns\n-------\na : int\n") + expected = """ + a = bar11() + + Wrapper for ``bar11``. + + Returns + ------- + a : int + """ + assert_equal(self.module.bar11.__doc__, textwrap.dedent(expected).lstrip()) if __name__ == "__main__": import nose |
