Commit 6ae436ca authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fixes

parent 50fe035d
......@@ -12,14 +12,14 @@ def test():
cdef long neg = -1
cdef unsigned long pos = -2 # will be a large positive number
print "neg", neg
print "pos", pos
print u"neg", neg
print u"pos", pos
D = { neg: 'neg', pos: 'pos' }
D = { neg: u'neg', pos: u'pos' }
print D[<object>neg]
print D[<object>pos]
print D[neg]
print D[pos]
\ No newline at end of file
__doc__ = u"""
>>> f(5, 7)
29509034655744
29509034655744L
>>> g(13, 4)
32
......@@ -9,6 +9,10 @@ __doc__ = u"""
105.0
"""
import sys
if sys.version_info[0] >= 3:
__doc__ = __doc__.replace(u"L", u"")
def f(a,b):
a += b
a *= b
......
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