From: Robert Bradshaw Date: Thu, 9 Sep 2010 08:27:54 +0000 (-0700) Subject: Tests fixes for Py3. X-Git-Tag: 0.14.alpha0~333^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=89680db6b66be6de8e439a80749d20f5359b5fe4;p=cython.git Tests fixes for Py3. --- diff --git a/tests/run/slice_ptr.pyx b/tests/run/slice_ptr.pyx index 466cf041..e46bd73d 100644 --- a/tests/run/slice_ptr.pyx +++ b/tests/run/slice_ptr.pyx @@ -3,7 +3,7 @@ from cpython.object cimport Py_EQ, Py_NE def double_ptr_slice(x, L, int a, int b): """ - >>> L = range(10) + >>> L = list(range(10)) >>> double_ptr_slice(5, L, 0, 10) >>> double_ptr_slice(6, L, 0, 10) >>> double_ptr_slice(None, L, 0, 10) @@ -27,7 +27,7 @@ def double_ptr_slice(x, L, int a, int b): def void_ptr_slice(py_x, L, int a, int b): """ - >>> L = range(10) + >>> L = list(range(10)) >>> void_ptr_slice(5, L, 0, 10) >>> void_ptr_slice(6, L, 0, 10) >>> void_ptr_slice(None, L, 0, 10)