From 6c2afddc5ab42725e57e1fd33e72a3a4cb8e0315 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 11 Jun 2016 13:03:22 +0200 Subject: [PATCH] remove external dependency on numpy in unrelated test file --- tests/run/locals.pyx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/run/locals.pyx b/tests/run/locals.pyx index 473f6177f..f343fe1cb 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() -- 2.25.1