Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6ab00e

Browse files
committed
MAINT: fixes from review
1 parent 6060857 commit f6ab00e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

numpy/f2py/tests/test_crackfortran.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99

1010
class TestNoSpace(util.F2PyTest):
11+
# issue gh-15035: add handling for endsubroutine, endfunction with no space
12+
# between "end" and the block name
1113
code = """
1214
subroutine subb(k)
1315
real(8), intent(inout) :: k(:)
@@ -25,12 +27,11 @@ class TestNoSpace(util.F2PyTest):
2527
character t0
2628
t0 = value
2729
endfunction
28-
2930
"""
3031

3132
def test_module(self):
32-
k = np.array([1, 2, 3], dtype = np.float)
33-
w = np.array([1, 2, 3], dtype = np.float)
33+
k = np.array([1, 2, 3], dtype=np.float64)
34+
w = np.array([1, 2, 3], dtype=np.float64)
3435
self.module.subb(k)
3536
assert_array_equal(k, w + 1)
3637
self.module.subc([w, k])

0 commit comments

Comments
 (0)