summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_aifc.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-05 19:05:48 (GMT)
committerGitHub <noreply@github.com>2022-04-05 19:05:48 (GMT)
commitc1d93b6411f975d67e43942f1a2745a22983c18c (patch)
treecccdd369da191fa03268967013d60369ab48fcdf /Lib/test/test_aifc.py
parent944f09adfcc59f54432ac2947cf95f3465d90e1e (diff)
downloadcpython-c1d93b6411f975d67e43942f1a2745a22983c18c.zip
cpython-c1d93b6411f975d67e43942f1a2745a22983c18c.tar.gz
cpython-c1d93b6411f975d67e43942f1a2745a22983c18c.tar.bz2
bpo-47061: deprecate the `aifc` module (GH-32134)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_aifc.py')
-rw-r--r--Lib/test/test_aifc.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_aifc.py b/Lib/test/test_aifc.py
index fb6da41..ad8a7ee 100644
--- a/Lib/test/test_aifc.py
+++ b/Lib/test/test_aifc.py
@@ -1,6 +1,6 @@
from test.support import findfile
from test.support.os_helper import TESTFN, unlink
-from test.support.warnings_helper import check_no_resource_warning
+from test.support.warnings_helper import check_no_resource_warning, import_deprecated
import unittest
from unittest import mock
from test import audiotests
@@ -8,7 +8,10 @@ from audioop import byteswap
import io
import sys
import struct
-import aifc
+
+
+aifc = import_deprecated("aifc")
+
class AifcTest(audiotests.AudioWriteTests,
audiotests.AudioTestsWithSourceFile):