From 0ed845211f4c29a367f9925e188c8acf46dad404 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 30 Dec 2008 13:19:55 +0100 Subject: [PATCH] Py3 test case fix --- tests/run/forfrom.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run/forfrom.pyx b/tests/run/forfrom.pyx index 590f60ca..c4bf96a8 100644 --- a/tests/run/forfrom.pyx +++ b/tests/run/forfrom.pyx @@ -5,6 +5,10 @@ __doc__ = u""" 00*01*02 """ +import sys +if sys.version_info[0] >= 3: + __doc__ = __doc__.replace(u" u'", u" '").replace(u' u"', u' "') + def for_else(): cdef int i, j=0, k=2 for i from 0 <= i < 10: -- 2.26.2