diff options
author | Brett Cannon <brett@python.org> | 2022-04-22 22:48:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 22:48:03 (GMT) |
commit | e7929cba169349776e78ff86143b24d0122b2cdd (patch) | |
tree | adab4f0c114c25ab829cadbbdb5d4bcbe20a2d6e /Lib/test/test_sndhdr.py | |
parent | 5576ddbbbc9c1d7a7819abc961e5d604ae0f7dd7 (diff) | |
download | cpython-e7929cba169349776e78ff86143b24d0122b2cdd.zip cpython-e7929cba169349776e78ff86143b24d0122b2cdd.tar.gz cpython-e7929cba169349776e78ff86143b24d0122b2cdd.tar.bz2 |
gh-91217: deprecate-sndhdr (#91806)
Also inline necessary functionality from `sndhdr` into `email.mime.audio` for `MIMEAudio`.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_sndhdr.py')
-rw-r--r-- | Lib/test/test_sndhdr.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_sndhdr.py b/Lib/test/test_sndhdr.py index 426417c..4d97437 100644 --- a/Lib/test/test_sndhdr.py +++ b/Lib/test/test_sndhdr.py @@ -1,7 +1,10 @@ -import sndhdr import pickle import unittest from test.support import findfile +from test.support import warnings_helper + +sndhdr = warnings_helper.import_deprecated("sndhdr") + class TestFormats(unittest.TestCase): def test_data(self): |