Commit b3080677 authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fixes

parent bf630e08
......@@ -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
__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:
......
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