diff options
author | Stefan Krah <skrah@bytereef.org> | 2015-01-29 16:40:59 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2015-01-29 16:40:59 (GMT) |
commit | 29b40c1569e96182ba677f7d31bce45695913105 (patch) | |
tree | 9aec3adc1cb825ee3cc7248042520920a780f3ce /Lib/test/test_memoryview.py | |
parent | fc341bd4c5da88b31aba2806f4288d19e945ad1d (diff) | |
parent | 3c0cf05901ea5cca0694734fd4a64b2bc267cb41 (diff) | |
download | cpython-29b40c1569e96182ba677f7d31bce45695913105.zip cpython-29b40c1569e96182ba677f7d31bce45695913105.tar.gz cpython-29b40c1569e96182ba677f7d31bce45695913105.tar.bz2 |
Issue #22668: Merge from 3.4.
Diffstat (limited to 'Lib/test/test_memoryview.py')
-rw-r--r-- | Lib/test/test_memoryview.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_memoryview.py b/Lib/test/test_memoryview.py index 69b9d2d..e9bd9fd 100644 --- a/Lib/test/test_memoryview.py +++ b/Lib/test/test_memoryview.py @@ -361,7 +361,9 @@ class AbstractMemoryTests: self.assertEqual(list(reversed(m)), list(m[::-1])) def test_issue22668(self): - m = memoryview(bytes(range(8))) + a = array.array('H', [256, 256, 256, 256]) + x = memoryview(a) + m = x.cast('B') b = m.cast('H') c = b[0:2] d = memoryview(b) |