Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on
big-endian platforms.
Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file on big-endian platforms.
diff --git a/Lib/test/audiotests.py b/Lib/test/audiotests.py
index 9c4ce6c..e378277 100644
--- a/Lib/test/audiotests.py
+++ b/Lib/test/audiotests.py
@@ -10,7 +10,8 @@
return base64.b16decode(s.replace(' ', ''))
def byteswap2(data):
- a = array.array('h', data)
+ a = array.array('h')
+ a.fromstring(data)
a.byteswap()
return a.tostring()
@@ -21,7 +22,8 @@
return bytes(ba)
def byteswap4(data):
- a = array.array('i', data)
+ a = array.array('i')
+ a.fromstring(data)
a.byteswap()
return a.tostring()