summaryrefslogtreecommitdiffstats
path: root/Lib/test/audiotests.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-21 09:04:22 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-21 09:04:22 (GMT)
commitf4fd257a028e22ab97e226ffd73715e9cead8eff (patch)
tree880acf6f230d6733c3edd74abac65954a0c75b6c /Lib/test/audiotests.py
parentbd3a7f90b51c6bd7d057bad9d7addd0bed8a6e7d (diff)
parentd9a018222f4a885ca3eeee41a77103f5462e3813 (diff)
downloadcpython-f4fd257a028e22ab97e226ffd73715e9cead8eff.zip
cpython-f4fd257a028e22ab97e226ffd73715e9cead8eff.tar.gz
cpython-f4fd257a028e22ab97e226ffd73715e9cead8eff.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 0e9175d..7581fe2e 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()