summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ossaudiodev.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-17 22:02:36 (GMT)
committerGitHub <noreply@github.com>2022-04-17 22:02:36 (GMT)
commitceea0715df33ae6dc3931670b4b749432d4e9707 (patch)
tree9ec3ddb969b2705c66ef25d208b13ead72430b94 /Lib/test/test_ossaudiodev.py
parentd5a69571f586080af4c29671c47f9c4bc671af7f (diff)
downloadcpython-ceea0715df33ae6dc3931670b4b749432d4e9707.zip
cpython-ceea0715df33ae6dc3931670b4b749432d4e9707.tar.gz
cpython-ceea0715df33ae6dc3931670b4b749432d4e9707.tar.bz2
gh-91217: deprecate ossaudiodev (GH-91641)
Automerge-Triggered-By: GH:brettcannon
Diffstat (limited to 'Lib/test/test_ossaudiodev.py')
-rw-r--r--Lib/test/test_ossaudiodev.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py
index 37d2d1f..3275333 100644
--- a/Lib/test/test_ossaudiodev.py
+++ b/Lib/test/test_ossaudiodev.py
@@ -1,10 +1,13 @@
from test import support
from test.support import import_helper, warnings_helper
+import warnings
support.requires('audio')
from test.support import findfile
-ossaudiodev = import_helper.import_module('ossaudiodev')
+with warnings.catch_warnings():
+ warnings.simplefilter("ignore", DeprecationWarning)
+ ossaudiodev = import_helper.import_module('ossaudiodev')
audioop = warnings_helper.import_deprecated('audioop')
import errno