summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py')
-rw-r--r--numpy/f2py/tests/test_callback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/tests/test_callback.py b/numpy/f2py/tests/test_callback.py
index 335b78413..018cea4fd 100644
--- a/numpy/f2py/tests/test_callback.py
+++ b/numpy/f2py/tests/test_callback.py
@@ -116,7 +116,7 @@ class TestF77Callback(util.F2PyTest):
f = getattr(self.module, "string_callback_array")
for cu in [cu1, cu2, cu3]:
- res = f(callback, cu, len(cu))
+ res = f(callback, cu, cu.size)
assert res == 0
def test_threadsafety(self):