commit | 159eac92c50d37abc1c324de8762130bb6d6164a | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Jun 23 20:38:54 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Tue Jun 23 20:38:54 2009 +0000 |
tree | 607092bab91c7aa7b3db09cde9f83cc6d5e2fdac | |
parent | b7706b58fae704458b090e3c5ce4eb7bd73091e3 [diff] [blame] |
Issue 6329: Fix iteration for memoryviews.
diff --git a/Lib/test/test_memoryview.py b/Lib/test/test_memoryview.py index cc8502b..31bfa62 100644 --- a/Lib/test/test_memoryview.py +++ b/Lib/test/test_memoryview.py
@@ -48,6 +48,12 @@ for tp in self._types: self.check_getitem_with_type(tp) + def test_iter(self): + for tp in self._types: + b = tp(self._source) + m = self._view(b) + self.assertEqual(list(m), [m[i] for i in range(len(m))]) + def test_setitem_readonly(self): if not self.ro_type: return