diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2021-05-26 15:53:36 +0300 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2021-05-26 15:53:36 +0300 |
commit | 09856eca90f63e73bd1b1feebe764539ea6e0db0 (patch) | |
tree | f0018606566d58a65b7cc8e982e1224e0b9c1dea /numpy | |
parent | 6eeab25f62fd52feb3738c836ade2da8fab32fac (diff) | |
download | numpy-09856eca90f63e73bd1b1feebe764539ea6e0db0.tar.gz |
Minor fixes
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') |