From d98a76b0ea6e4db29be49621c964e573fbd02e11 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 4 Dec 2009 09:32:56 +0100 Subject: [PATCH] Py3 test fixes --- tests/run/list_pop.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/run/list_pop.pyx b/tests/run/list_pop.pyx index ad1d01b3..f1f5f71f 100644 --- a/tests/run/list_pop.pyx +++ b/tests/run/list_pop.pyx @@ -10,7 +10,7 @@ class A: @cython.test_fail_if_path_exists('//SimpleCallNode/AttributeNode') def simple_pop(L): """ - >>> L = range(10) + >>> L = list(range(10)) >>> simple_pop(L) 9 >>> simple_pop(L) @@ -36,7 +36,7 @@ def simple_pop(L): @cython.test_fail_if_path_exists('//SimpleCallNode/AttributeNode') def index_pop(L, int i): """ - >>> L = range(10) + >>> L = list(range(10)) >>> index_pop(L, 2) 2 >>> index_pop(L, -2) @@ -71,7 +71,7 @@ def index_pop(L, int i): @cython.test_fail_if_path_exists('//PythonCapiCallNode') def crazy_pop(L): """ - >>> crazy_pop(range(10)) + >>> crazy_pop(list(range(10))) Traceback (most recent call last): ... TypeError: pop() takes at most 1 argument (3 given) -- 2.26.2