From 89680db6b66be6de8e439a80749d20f5359b5fe4 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 9 Sep 2010 01:27:54 -0700 Subject: [PATCH] Tests fixes for Py3. --- tests/run/slice_ptr.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.26.2