diff options
author | Brett Cannon <brett@python.org> | 2022-04-07 19:27:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 19:27:35 (GMT) |
commit | 87eec70d97b250f820325b4f1b4f781b443b5180 (patch) | |
tree | f8e20384e332b2c5743c134d87a82070cee87ff7 /Lib/test/test_aifc.py | |
parent | 1df4298b62fcc124ba9de861f8dc8239ad72cde2 (diff) | |
download | cpython-87eec70d97b250f820325b4f1b4f781b443b5180.zip cpython-87eec70d97b250f820325b4f1b4f781b443b5180.tar.gz cpython-87eec70d97b250f820325b4f1b4f781b443b5180.tar.bz2 |
Deprecate audioop (GH-32392)
Diffstat (limited to 'Lib/test/test_aifc.py')
-rw-r--r-- | Lib/test/test_aifc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_aifc.py b/Lib/test/test_aifc.py index ad8a7ee..d3863d4 100644 --- a/Lib/test/test_aifc.py +++ b/Lib/test/test_aifc.py @@ -4,13 +4,13 @@ from test.support.warnings_helper import check_no_resource_warning, import_depre import unittest from unittest import mock from test import audiotests -from audioop import byteswap import io import sys import struct aifc = import_deprecated("aifc") +audioop = import_deprecated("audioop") class AifcTest(audiotests.AudioWriteTests, @@ -124,7 +124,7 @@ class AifcULAWTest(AifcTest, unittest.TestCase): E5040CBC 617C0A3C 08BC0A3C 2C7C0B3C 517C0E3C 8A8410FC B6840EBC 457C0A3C \ """) if sys.byteorder != 'big': - frames = byteswap(frames, 2) + frames = audioop.byteswap(frames, 2) class AifcALAWTest(AifcTest, unittest.TestCase): @@ -145,7 +145,7 @@ class AifcALAWTest(AifcTest, unittest.TestCase): E4800CC0 62000A40 08C00A40 2B000B40 52000E40 8A001180 B6000EC0 46000A40 \ """) if sys.byteorder != 'big': - frames = byteswap(frames, 2) + frames = audioop.byteswap(frames, 2) class AifcMiscTest(unittest.TestCase): |