Renamed _length_cue() to __length_hint__(). See:
http://mail.python.org/pipermail/python-dev/2006-February/060524.html
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index e26065c..6ff1215 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -607,7 +607,9 @@
for v in self.set:
self.assert_(v in self.values)
setiter = iter(self.set)
- self.assertEqual(setiter._length_cue(), len(self.set))
+ # note: __length_hint__ is an internal undocumented API,
+ # don't rely on it in your own programs
+ self.assertEqual(setiter.__length_hint__(), len(self.set))
def test_pickling(self):
p = pickle.dumps(self.set)