mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -5,8 +5,12 @@ from test.support import socket_helper
|
|||
from test.support import warnings_helper
|
||||
import socket
|
||||
import io
|
||||
import smtpd
|
||||
import asyncore
|
||||
|
||||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter('ignore', DeprecationWarning)
|
||||
import smtpd
|
||||
import asyncore
|
||||
|
||||
|
||||
class DummyServer(smtpd.SMTPServer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue