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

Py3 test fixes

parent 72f162a4
...@@ -7,9 +7,7 @@ __doc__ = u""" ...@@ -7,9 +7,7 @@ __doc__ = u"""
True True
>>> i2() == 0x42 >>> i2() == 0x42
True True
>>> i3() == 042 >>> i3() == -0x42
True
>>> i4() == -0x42
True True
>>> l() >>> l()
666 666
...@@ -30,9 +28,7 @@ __doc__ = u""" ...@@ -30,9 +28,7 @@ __doc__ = u"""
import sys import sys
if sys.version_info[0] < 3: if sys.version_info[0] < 3:
__doc__ = __doc__.replace(u" b'", u" '") __doc__ = __doc__.replace(u" b'", u" '")
else:
import sys
if sys.version_info[0] >= 3:
__doc__ = __doc__.replace(u" 042", u" 0o42") __doc__ = __doc__.replace(u" 042", u" 0o42")
DEF TUPLE = (1, 2, u"buckle my shoe") DEF TUPLE = (1, 2, u"buckle my shoe")
...@@ -42,8 +38,7 @@ DEF CHAR = c'x' ...@@ -42,8 +38,7 @@ DEF CHAR = c'x'
DEF INT0 = -1 DEF INT0 = -1
DEF INT1 = 42 DEF INT1 = 42
DEF INT2 = 0x42 DEF INT2 = 0x42
DEF INT3 = 042 DEF INT3 = -0x42
DEF INT4 = -0x42
DEF LONG = 666L DEF LONG = 666L
DEF FLOAT = 12.5 DEF FLOAT = 12.5
DEF STR = "spam" DEF STR = "spam"
...@@ -79,11 +74,6 @@ def i3(): ...@@ -79,11 +74,6 @@ def i3():
i = INT3 i = INT3
return i return i
def i4():
cdef int i
i = INT4
return i
def l(): def l():
cdef long l cdef long l
l = LONG 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