diff options
| author | Raymond Hettinger <python@rcn.com> | 2008-12-03 15:42:10 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2008-12-03 15:42:10 (GMT) |
| commit | 7989a4dccb39aa954057cbc4205473f09daae84b (patch) | |
| tree | 1e3d69be16c9c149eabab7d4fe3c07f13c25f236 /Lib/test/list_tests.py | |
| parent | fd8a1ec4863b8a53436dd45fd190b2fe3ac4b2a8 (diff) | |
| download | cpython-7989a4dccb39aa954057cbc4205473f09daae84b.zip cpython-7989a4dccb39aa954057cbc4205473f09daae84b.tar.gz cpython-7989a4dccb39aa954057cbc4205473f09daae84b.tar.bz2 | |
Backport r67478
Diffstat (limited to 'Lib/test/list_tests.py')
| -rw-r--r-- | Lib/test/list_tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py index b3f24d3..c9aa316 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]) |
