From: Stefan Behnel Date: Thu, 15 May 2008 07:44:11 +0000 (+0200) Subject: test fix X-Git-Tag: 0.9.8rc1~37^2~63 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2aa6132bc1852671a2b7b8aebd4798893ce27fb7;p=cython.git test fix --- diff --git a/tests/run/r_mang1.pyx b/tests/run/r_mang1.pyx index 8357b136..86840f4d 100644 --- a/tests/run/r_mang1.pyx +++ b/tests/run/r_mang1.pyx @@ -1,12 +1,16 @@ __doc__ = u""" >>> import re >>> t - ('2',) + (u'2',) >>> t == re.search('(\\d+)', '-2.80 98\\n').groups() True """ +import sys +if sys.version_info[0] >= 3: + __doc__ = __doc__.replace(u"(u'", u"('") + # this is a string constant test, not a test for 're' import re -t = re.search('(\d+)', '-2.80 98\n').groups() +t = re.search(u'(\d+)', u'-2.80 98\n').groups()