mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] gh-108303: Move smtpd
to test.support
(GH-114368) (#114427)
gh-108303: Move `smtpd` to `test.support` (GH-114368)
Update test_logging.py and test_smtplib.py.
(cherry picked from commit 8f5e7d739f
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
7da1750225
commit
58fdd15d5a
3 changed files with 2 additions and 5 deletions
|
@ -49,6 +49,7 @@ from test.support import socket_helper
|
|||
from test.support import threading_helper
|
||||
from test.support import warnings_helper
|
||||
from test.support import asyncore
|
||||
from test.support import smtpd
|
||||
from test.support.logging_helper import TestHandler
|
||||
import textwrap
|
||||
import threading
|
||||
|
@ -63,9 +64,6 @@ from urllib.parse import urlparse, parse_qs
|
|||
from socketserver import (ThreadingUDPServer, DatagramRequestHandler,
|
||||
ThreadingTCPServer, StreamRequestHandler)
|
||||
|
||||
with warnings.catch_warnings():
|
||||
from . import smtpd
|
||||
|
||||
try:
|
||||
import win32evtlog, win32evtlogutil, pywintypes
|
||||
except ImportError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue