summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-12-03 15:42:10 +0000
committerRaymond Hettinger <python@rcn.com>2008-12-03 15:42:10 +0000
commit7989a4dccb39aa954057cbc4205473f09daae84b (patch)
tree1e3d69be16c9c149eabab7d4fe3c07f13c25f236 /Lib/test
parentfd8a1ec4863b8a53436dd45fd190b2fe3ac4b2a8 (diff)
downloadcpython-git-7989a4dccb39aa954057cbc4205473f09daae84b.tar.gz
Backport r67478
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/list_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py
index b3f24d30a9..c9aa3160a9 100644
--- a/Lib/test/list_tests.py
+++ b/Lib/test/list_tests.py
@@ -84,6 +84,8 @@ class CommonTest(seq_tests.CommonTest):
self.assertRaises(StopIteration, r.next)
self.assertEqual(list(reversed(self.type2test())),
self.type2test())
+ # Bug 3689: make sure list-reversed-iterator doesn't have __len__
+ self.assertRaises(TypeError, len, reversed([1,2,3]))
def test_setitem(self):
a = self.type2test([0, 1])