Spaces:
Paused
Paused
import sys | |
import pytest | |
from . import util | |
from numpy.testing import assert_equal, IS_PYPY | |
class TestBlockDocString(util.F2PyTest): | |
code = """ | |
SUBROUTINE FOO() | |
INTEGER BAR(2, 3) | |
COMMON /BLOCK/ BAR | |
RETURN | |
END | |
""" | |
def test_block_docstring(self): | |
expected = "bar : 'i'-array(2,3)\n" | |
assert_equal(self.module.block.__doc__, expected) | |