bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905)

This commit is contained in:
Irit Katriel 2021-06-25 00:20:40 +01:00 committed by GitHub
parent 8488b85c63
commit 22e7effad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 51 additions and 16 deletions

View file

@ -21,7 +21,6 @@ import pprint
import urllib.request
import threading
import traceback
import asyncore
import weakref
import platform
import sysconfig
@ -31,6 +30,11 @@ try:
except ImportError:
ctypes = None
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)
import asyncore
ssl = import_helper.import_module("ssl")
import _ssl