diff --git a/tests/run/locals.pyx b/tests/run/locals.pyx index 473f6177ff97b127a567dcfe0d80e90e3d45ec18..f343fe1cb0334040dde3fd015d8469f51aae6b69 100644 --- a/tests/run/locals.pyx +++ b/tests/run/locals.pyx @@ -103,13 +103,13 @@ def pass_on_locals(f): f(locals()) f(l=locals()) f(l=locals(), a=1) - -def locals_arrays(object[double, ndim=1] a): + + +def buffers_in_locals(object[char, ndim=1] a): """ - >>> import numpy as np - >>> sorted(locals_arrays(np.arange(5,dtype='double'))) + >>> sorted(buffers_in_locals(b'abcdefg')) ['a', 'b'] """ - cdef object[double, ndim=1] b = a.copy() - + cdef object[unsigned char, ndim=1] b = a + return locals()