diff options
author | Victor Stinner <vstinner@python.org> | 2021-12-07 11:31:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 11:31:04 (GMT) |
commit | cf7eaa4617295747ee5646c4e2b7e7a16d7c64ab (patch) | |
tree | b09b7bcc7b2cdfcae0b8291f6ec867dbb8337246 /Lib/test/test_smtplib.py | |
parent | 2bf551757e0a7e3cc6ce2ebed2178b82438ac6b5 (diff) | |
download | cpython-cf7eaa4617295747ee5646c4e2b7e7a16d7c64ab.zip cpython-cf7eaa4617295747ee5646c4e2b7e7a16d7c64ab.tar.gz cpython-cf7eaa4617295747ee5646c4e2b7e7a16d7c64ab.tar.bz2 |
Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951)
This reverts commit 9bf2cbc4c498812e14f20d86acb61c53928a5a57.
Diffstat (limited to 'Lib/test/test_smtplib.py')
-rw-r--r-- | Lib/test/test_smtplib.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py index bdce3e3..9761a37 100644 --- a/Lib/test/test_smtplib.py +++ b/Lib/test/test_smtplib.py @@ -18,13 +18,17 @@ import threading import unittest from test import support, mock_socket -from test.support import _asyncore as asyncore -from test.support import _smtpd as smtpd from test.support import hashlib_helper from test.support import socket_helper from test.support import threading_helper from unittest.mock import Mock +import warnings +with warnings.catch_warnings(): + warnings.simplefilter('ignore', DeprecationWarning) + import asyncore + import smtpd + HOST = socket_helper.HOST if sys.platform == 'darwin': |