diff options
author | Bob Eldering <eldering@jive.eu> | 2017-07-07 14:21:24 +0200 |
---|---|---|
committer | Bob Eldering <eldering@jive.eu> | 2017-07-07 14:21:24 +0200 |
commit | e56ad01c7c821e05077705fba171ff4adead88f9 (patch) | |
tree | f26ff66cf075ccebff5679552b22803d0c248b52 /numpy/f2py/tests | |
parent | 569c59193511d6aa62ddea56b8aa979f66755a5d (diff) | |
download | numpy-e56ad01c7c821e05077705fba171ff4adead88f9.tar.gz |
TST: test doc string of COMMON block arrays for numpy.f2py.
Diffstat (limited to 'numpy/f2py/tests')
-rw-r--r-- | numpy/f2py/tests/test_block_docstring.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/numpy/f2py/tests/test_block_docstring.py b/numpy/f2py/tests/test_block_docstring.py new file mode 100644 index 000000000..efe2f4b6e --- /dev/null +++ b/numpy/f2py/tests/test_block_docstring.py @@ -0,0 +1,23 @@ +from __future__ import division, absolute_import, print_function + +import textwrap +import util + +from numpy.testing import run_module_suite, assert_equal + +class TestBlockDocString(util.F2PyTest): + code = """ + SUBROUTINE FOO() + INTEGER BAR(2, 3) + + COMMON /BLOCK/ BAR + RETURN + END + """ + + def test_block_docstring(self): + expected = "'i'-array(2,3)\n" + assert_equal(self.module.block.__doc__, expected) + +if __name__ == "__main__": + run_module_suite() |