mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Issue #22668: Merge from 3.4.
This commit is contained in:
commit
29b40c1569
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user