Commit 83c9318b authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fixes

parent 72f162a4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment