Commit 9d0747e5 authored by Tres Seaver's avatar Tres Seaver

List-ify moar range objects under Py3k.

parent b1b1fef3
......@@ -1221,7 +1221,7 @@ class NormalSetTests(Base):
self.assertEqual(len(t), n)
kslice = t.keys()
self.assertEqual(len(kslice), n)
self.assertEqual(len(list(kslice)), n)
# Test whole-structure slices.
x = kslice[:]
......@@ -1230,9 +1230,9 @@ class NormalSetTests(Base):
for lo in range(-2*n, 2*n+1):
# Test one-sided slices.
x = kslice[:lo]
self.assertEqual(list(x), keys[:lo])
self.assertEqual(list(x), list(keys[:lo]))
x = kslice[lo:]
self.assertEqual(list(x), keys[lo:])
self.assertEqual(list(x), list(keys[lo:]))
for hi in range(-2*n, 2*n+1):
# Test two-sided slices.
......
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