Issue #22668: Remove endianness assumption in test.
This commit is contained in:
parent
fa5d6a5ff3
commit
3c0cf05901
|
@ -361,7 +361,9 @@ class AbstractMemoryTests:
|
||||||
self.assertEqual(list(reversed(m)), list(m[::-1]))
|
self.assertEqual(list(reversed(m)), list(m[::-1]))
|
||||||
|
|
||||||
def test_issue22668(self):
|
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')
|
b = m.cast('H')
|
||||||
c = b[0:2]
|
c = b[0:2]
|
||||||
d = memoryview(b)
|
d = memoryview(b)
|
||||||
|
|
Loading…
Reference in New Issue