summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-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