summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sunau.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-23 20:26:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-23 20:26:01 (GMT)
commit3062c9a6c87ff9b480d1eea960efbfc604e4b157 (patch)
treeb31b2fe4839d47d9ca54f171d6adf518cfbffa9d /Lib/test/test_sunau.py
parent2b38fc187c2a764b7608cd262de5a2777a77f4c8 (diff)
downloadcpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.zip
cpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.tar.gz
cpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.tar.bz2
Issue #19641: Added the audioop.byteswap() function to convert big-endian
samples to little-endian and vice versa.
Diffstat (limited to 'Lib/test/test_sunau.py')
-rw-r--r--Lib/test/test_sunau.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sunau.py b/Lib/test/test_sunau.py
index 81acd96..af9ffec 100644
--- a/Lib/test/test_sunau.py
+++ b/Lib/test/test_sunau.py
@@ -1,6 +1,7 @@
from test.support import TESTFN
import unittest
from test import audiotests
+from audioop import byteswap
import sys
import sunau
@@ -124,7 +125,7 @@ class SunauULAWTest(audiotests.AudioWriteTests,
E5040CBC 617C0A3C 08BC0A3C 2C7C0B3C 517C0E3C 8A8410FC B6840EBC 457C0A3C \
""")
if sys.byteorder != 'big':
- frames = audiotests.byteswap2(frames)
+ frames = byteswap(frames, 2)
if __name__ == "__main__":