You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
568 B
Python
24 lines
568 B
Python
from __future__ import division, absolute_import, print_function
|
|
|
|
import sys
|
|
import pytest
|
|
from . import util
|
|
|
|
from numpy.testing import assert_equal
|
|
|
|
class TestBlockDocString(util.F2PyTest):
|
|
code = """
|
|
SUBROUTINE FOO()
|
|
INTEGER BAR(2, 3)
|
|
|
|
COMMON /BLOCK/ BAR
|
|
RETURN
|
|
END
|
|
"""
|
|
|
|
@pytest.mark.skipif(sys.platform=='win32',
|
|
reason='Fails with MinGW64 Gfortran (Issue #9673)')
|
|
def test_block_docstring(self):
|
|
expected = "'i'-array(2,3)\n"
|
|
assert_equal(self.module.block.__doc__, expected)
|