From: Stefan Behnel Date: Fri, 4 Dec 2009 08:32:56 +0000 (+0100) Subject: Py3 test fixes X-Git-Tag: 0.12.1~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d98a76b0ea6e4db29be49621c964e573fbd02e11;p=cython.git Py3 test fixes --- 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)