mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905)
This commit is contained in:
parent
8488b85c63
commit
22e7effad5
9 changed files with 51 additions and 16 deletions
|
@ -4,8 +4,6 @@
|
|||
# environment
|
||||
|
||||
import ftplib
|
||||
import asyncore
|
||||
import asynchat
|
||||
import socket
|
||||
import io
|
||||
import errno
|
||||
|
@ -24,6 +22,13 @@ from test.support import socket_helper
|
|||
from test.support import warnings_helper
|
||||
from test.support.socket_helper import HOST, HOSTv6
|
||||
|
||||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter('ignore', DeprecationWarning)
|
||||
import asyncore
|
||||
import asynchat
|
||||
|
||||
|
||||
TIMEOUT = support.LOOPBACK_TIMEOUT
|
||||
DEFAULT_ENCODING = 'utf-8'
|
||||
# the dummy data returned by server over the data channel when
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue