From: Stefan Behnel Date: Sat, 28 Feb 2009 07:48:31 +0000 (+0100) Subject: Py3 test fixes X-Git-Tag: 0.11.rc~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b308067745845f3d93cf9813de676f9a8360d51e;p=cython.git Py3 test fixes --- diff --git a/tests/run/importfrom.pyx b/tests/run/importfrom.pyx index 65514607..5135922b 100644 --- a/tests/run/importfrom.pyx +++ b/tests/run/importfrom.pyx @@ -48,21 +48,21 @@ def import4(): def typed_imports(): import sys - cdef long maxint + cdef long maxunicode cdef tuple t - from sys import maxint - print maxint == sys.maxint + from sys import maxunicode + print maxunicode == sys.maxunicode from sys import version_info as t print t is sys.version_info try: - from sys import version_info as maxint + from sys import version_info as maxunicode except TypeError, e: print e try: - from sys import maxint as t + from sys import maxunicode as t except TypeError, e: print e diff --git a/tests/run/trybreak.pyx b/tests/run/trybreak.pyx index bc4c7155..50896ca8 100644 --- a/tests/run/trybreak.pyx +++ b/tests/run/trybreak.pyx @@ -1,16 +1,16 @@ __doc__ = u""" ->>> foo() -'a' +>>> print(foo()) +a """ # Indirectly makes sure the cleanup happens correctly on breaking. def foo(): - for x in "abc": + for x in u"abc": try: x() except: break - for x in "abc": + for x in u"abc": try: x() except: