From: Stefan Behnel Date: Fri, 21 Aug 2009 11:59:25 +0000 (+0200) Subject: Py3 test fixes X-Git-Tag: 0.12.alpha0~227 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=83c9318b0eb72ce7fdf5e8436e6292688fb0221f;p=cython.git Py3 test fixes --- diff --git a/tests/run/ct_DEF.pyx b/tests/run/ct_DEF.pyx index 540f7ebc..1f64106e 100644 --- a/tests/run/ct_DEF.pyx +++ b/tests/run/ct_DEF.pyx @@ -7,9 +7,7 @@ __doc__ = u""" True >>> i2() == 0x42 True - >>> i3() == 042 - True - >>> i4() == -0x42 + >>> i3() == -0x42 True >>> l() 666 @@ -30,9 +28,7 @@ __doc__ = u""" import sys if sys.version_info[0] < 3: __doc__ = __doc__.replace(u" b'", u" '") - -import sys -if sys.version_info[0] >= 3: +else: __doc__ = __doc__.replace(u" 042", u" 0o42") DEF TUPLE = (1, 2, u"buckle my shoe") @@ -42,8 +38,7 @@ DEF CHAR = c'x' DEF INT0 = -1 DEF INT1 = 42 DEF INT2 = 0x42 -DEF INT3 = 042 -DEF INT4 = -0x42 +DEF INT3 = -0x42 DEF LONG = 666L DEF FLOAT = 12.5 DEF STR = "spam" @@ -79,11 +74,6 @@ def i3(): i = INT3 return i -def i4(): - cdef int i - i = INT4 - return i - def l(): cdef long l l = LONG