Commit b3080677 authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fixes

parent bf630e08
...@@ -48,21 +48,21 @@ def import4(): ...@@ -48,21 +48,21 @@ def import4():
def typed_imports(): def typed_imports():
import sys import sys
cdef long maxint cdef long maxunicode
cdef tuple t cdef tuple t
from sys import maxint from sys import maxunicode
print maxint == sys.maxint print maxunicode == sys.maxunicode
from sys import version_info as t from sys import version_info as t
print t is sys.version_info print t is sys.version_info
try: try:
from sys import version_info as maxint from sys import version_info as maxunicode
except TypeError, e: except TypeError, e:
print e print e
try: try:
from sys import maxint as t from sys import maxunicode as t
except TypeError, e: except TypeError, e:
print e print e
__doc__ = u""" __doc__ = u"""
>>> foo() >>> print(foo())
'a' a
""" """
# Indirectly makes sure the cleanup happens correctly on breaking. # Indirectly makes sure the cleanup happens correctly on breaking.
def foo(): def foo():
for x in "abc": for x in u"abc":
try: try:
x() x()
except: except:
break break
for x in "abc": for x in u"abc":
try: try:
x() x()
except: except:
......
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