summaryrefslogtreecommitdiffstats
path: root/Lib/test/audiotests.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-21 09:02:30 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-21 09:02:30 (GMT)
commitd9a018222f4a885ca3eeee41a77103f5462e3813 (patch)
treed047cf723dff1351247f5138dceb549733fa8fa4 /Lib/test/audiotests.py
parent8db1823cf7963f5a8557eb840a20248bd18f658a (diff)
downloadcpython-d9a018222f4a885ca3eeee41a77103f5462e3813.zip
cpython-d9a018222f4a885ca3eeee41a77103f5462e3813.tar.gz
cpython-d9a018222f4a885ca3eeee41a77103f5462e3813.tar.bz2
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.
Diffstat (limited to 'Lib/test/audiotests.py')
-rw-r--r--Lib/test/audiotests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/audiotests.py b/Lib/test/audiotests.py
index 59e99287..008281f 100644
--- a/Lib/test/audiotests.py
+++ b/Lib/test/audiotests.py
@@ -6,7 +6,8 @@ import pickle
import sys
def byteswap2(data):
- a = array.array('h', data)
+ a = array.array('h')
+ a.frombytes(data)
a.byteswap()
return a.tobytes()
@@ -17,7 +18,8 @@ def byteswap3(data):
return bytes(ba)
def byteswap4(data):
- a = array.array('i', data)
+ a = array.array('i')
+ a.frombytes(data)
a.byteswap()
return a.tobytes()