From 2aa6132bc1852671a2b7b8aebd4798893ce27fb7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 15 May 2008 09:44:11 +0200 Subject: [PATCH] test fix --- tests/run/r_mang1.pyx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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() -- 2.26.2