From af6425f6832c973cf116971bf565c482bbdbfe2c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Oct 2009 12:13:26 +0200 Subject: [PATCH] Py3 test fix --- tests/run/autotestdict.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2