diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/f2py/cfuncs.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_string.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py index 19c5363e4..60685be8a 100644 --- a/numpy/f2py/cfuncs.py +++ b/numpy/f2py/cfuncs.py @@ -719,7 +719,7 @@ fprintf(stderr,\"string_from_pyobj(str='%s',len=%d,inistr='%s',obj=%p)\\n\", /* TODO: change the type of `len` so that we can remove this */ if (n > NPY_MAX_INT) { PyErr_SetString(PyExc_OverflowError, - "object too larger for a 32-bit int"); + "object too large for a 32-bit int"); goto capi_fail; } *len = n; diff --git a/numpy/f2py/tests/test_string.py b/numpy/f2py/tests/test_string.py index 2a0945934..1530c58f6 100644 --- a/numpy/f2py/tests/test_string.py +++ b/numpy/f2py/tests/test_string.py @@ -27,7 +27,7 @@ class TestString(util.F2PyTest): class TestDocStringArguments(util.F2PyTest): suffix = '.f' - code = textwrap.dedent(""" + code = """ C FILE: STRING.F SUBROUTINE FOO(A,B,C,D) CHARACTER*5 A, B @@ -49,7 +49,7 @@ Cf2py intent(inout) b,d PRINT*, "D=",D END C END OF FILE STRING.F - """) + """ def test_example(self): a = np.array(b'123\0\0') |