diff options
author | mattip <matti.picus@gmail.com> | 2019-12-03 12:08:05 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-12-03 12:27:00 +0200 |
commit | f6ab00eb61d3db15522f373462d8984e792edeb8 (patch) | |
tree | d89e6c3ac00a31c14e6a908e1b0422af9e417797 /numpy/f2py | |
parent | 60608572d7740dabf287d2536684eacbc46561ab (diff) | |
download | numpy-f6ab00eb61d3db15522f373462d8984e792edeb8.tar.gz |
MAINT: fixes from review
Diffstat (limited to 'numpy/f2py')
-rw-r--r-- | numpy/f2py/tests/test_crackfortran.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/f2py/tests/test_crackfortran.py b/numpy/f2py/tests/test_crackfortran.py index 8af1b4d80..941696be3 100644 --- a/numpy/f2py/tests/test_crackfortran.py +++ b/numpy/f2py/tests/test_crackfortran.py @@ -8,6 +8,8 @@ from . import util class TestNoSpace(util.F2PyTest): + # issue gh-15035: add handling for endsubroutine, endfunction with no space + # between "end" and the block name code = """ subroutine subb(k) real(8), intent(inout) :: k(:) @@ -25,12 +27,11 @@ class TestNoSpace(util.F2PyTest): character t0 t0 = value endfunction - """ def test_module(self): - k = np.array([1, 2, 3], dtype = np.float) - w = np.array([1, 2, 3], dtype = np.float) + k = np.array([1, 2, 3], dtype=np.float64) + w = np.array([1, 2, 3], dtype=np.float64) self.module.subb(k) assert_array_equal(k, w + 1) self.module.subc([w, k]) |