summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/audiotests.py6
-rw-r--r--Lib/test/test_wave.py11
2 files changed, 15 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()
diff --git a/Lib/test/test_wave.py b/Lib/test/test_wave.py
index cf069ae..5be1251 100644
--- a/Lib/test/test_wave.py
+++ b/Lib/test/test_wave.py
@@ -48,6 +48,12 @@ class WavePCM16Test(audiotests.AudioWriteTests,
if sys.byteorder != 'big':
frames = audiotests.byteswap2(frames)
+ if sys.byteorder == 'big':
+ @unittest.expectedFailure
+ def test_unseekable_incompleted_write(self):
+ super().test_unseekable_incompleted_write()
+
+
class WavePCM24Test(audiotests.AudioWriteTests,
audiotests.AudioTestsWithSourceFile,
@@ -108,6 +114,11 @@ class WavePCM32Test(audiotests.AudioWriteTests,
if sys.byteorder != 'big':
frames = audiotests.byteswap4(frames)
+ if sys.byteorder == 'big':
+ @unittest.expectedFailure
+ def test_unseekable_incompleted_write(self):
+ super().test_unseekable_incompleted_write()
+
if __name__ == '__main__':
unittest.main()