diff options
Diffstat (limited to 'Lib/test/test_asyncore.py')
-rw-r--r-- | Lib/test/test_asyncore.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py index e3f31bd..98ccd3a 100644 --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py @@ -20,10 +20,7 @@ if support.PGO: support.requires_working_socket(module=True) -import warnings -with warnings.catch_warnings(): - warnings.simplefilter('ignore', DeprecationWarning) - import asyncore +asyncore = warnings_helper.import_deprecated('asyncore') HAS_UNIX_SOCKETS = hasattr(socket, 'AF_UNIX') |