From: Stefan Behnel Date: Fri, 30 May 2008 10:07:36 +0000 (+0200) Subject: Py3 test fixes X-Git-Tag: 0.9.8rc1~11^2~10^2~6^2~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ae436cabdd91c91c04cb0f1f2a42f36690d4c6a;p=cython.git Py3 test fixes --- diff --git a/tests/run/big_indices.pyx b/tests/run/big_indices.pyx index e359ed04..0bf13916 100644 --- a/tests/run/big_indices.pyx +++ b/tests/run/big_indices.pyx @@ -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[neg] print D[pos] print D[neg] print D[pos] - \ No newline at end of file + diff --git a/tests/run/inplace.pyx b/tests/run/inplace.pyx index 22f8ac83..54859fb3 100644 --- a/tests/run/inplace.pyx +++ b/tests/run/inplace.pyx @@ -1,6 +1,6 @@ __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