From: Stefan Behnel Date: Thu, 15 May 2008 09:36:04 +0000 (+0200) Subject: test fix X-Git-Tag: 0.9.8rc1~37^2~55 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00aead893731dc99a3c34a56ed4bfedd61eaf950;p=cython.git test fix --- diff --git a/tests/run/ct_DEF.pyx b/tests/run/ct_DEF.pyx index 39e577b9..97c80046 100644 --- a/tests/run/ct_DEF.pyx +++ b/tests/run/ct_DEF.pyx @@ -16,7 +16,7 @@ __doc__ = u""" >>> f() 12.5 >>> s() - u'spam' + b'spam' >>> two() 2 >>> five() @@ -28,8 +28,8 @@ __doc__ = u""" """ import sys -if sys.version_info[0] >= 3: - __doc__ = __doc__.replace(u" u'", u" '") +if sys.version_info[0] < 3: + __doc__ = __doc__.replace(u" b'", u" '") import sys if sys.version_info[0] >= 3: @@ -46,7 +46,7 @@ DEF INT3 = 042 DEF INT4 = -0x42 DEF LONG = 666L DEF FLOAT = 12.5 -DEF STR = u"spam" +DEF STR = "spam" DEF TWO = TUPLE[1] DEF FIVE = TWO + 3 DEF TRUE = TRUE_FALSE[0]