From b308067745845f3d93cf9813de676f9a8360d51e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 28 Feb 2009 08:48:31 +0100 Subject: [PATCH] Py3 test fixes --- tests/run/importfrom.pyx | 10 +++++----- tests/run/trybreak.pyx | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) 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: -- 2.26.2