From: Stefan Behnel Date: Sat, 10 Oct 2009 10:13:26 +0000 (+0200) Subject: Py3 test fix X-Git-Tag: 0.13.beta0~2^2~121^2~88 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af6425f6832c973cf116971bf565c482bbdbfe2c;p=cython.git Py3 test fix --- diff --git a/tests/run/autotestdict.pyx b/tests/run/autotestdict.pyx index 32b982f5..32e90b51 100644 --- a/tests/run/autotestdict.pyx +++ b/tests/run/autotestdict.pyx @@ -8,10 +8,10 @@ which makes the test flow a bit untraditional. Both module test and individual tests are run; finally, all_tests_run() is executed which does final validation. ->>> items = __test__.items() +>>> items = list(__test__.items()) >>> items.sort() >>> for key, value in items: -... print key, ';', value +... print('%s ; %s' % (key, value)) MyCdefClass.method (line 75) ; >>> add_log("cdef class method") MyClass.method (line 65) ; >>> add_log("class method") doc_without_test (line 47) ; Some docs