Commit 0a422d40 authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fixes

parent 7db195ac
__doc__ = u"""
>>> class FakeSeq(object):
... def __init__(self, length):
... self._values = range(1,length+1)
... self._values = list(range(1,length+1))
... def __getitem__(self, i):
... return self._values[i]
......@@ -165,10 +165,10 @@ ValueError: need more than 1 value to unpack
>>> unpack_middle_tuple((1,2,3))
(1, [2], 3)
>>> a,b,c = unpack_middle(range(100))
>>> a,b,c = unpack_middle(list(range(100)))
>>> a, len(b), c
(0, 98, 99)
>>> a,b,c = unpack_middle_list(range(100))
>>> a,b,c = unpack_middle_list(list(range(100)))
>>> a, len(b), c
(0, 98, 99)
>>> a,b,c = unpack_middle_tuple(tuple(range(100)))
......
......@@ -21,7 +21,7 @@ cdef class A:
self.a = a
def __hash__(self):
if self.a == 100:
raise TypeError, "That's kind of a round number..."
raise TypeError, u"That's kind of a round number..."
else:
return self.a
......
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