summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2024-01-22 13:36:29 (GMT)
committerGitHub <noreply@github.com>2024-01-22 13:36:29 (GMT)
commit8f5e7d739f56a75022dfe8fa24675b6c7b321ab5 (patch)
tree398a19e1bbcfeedf1575bafec34bd1bdae8f43a5 /Lib/test/test_logging.py
parentc8351a617b8970dbe0d3af721c6aea873019c466 (diff)
downloadcpython-8f5e7d739f56a75022dfe8fa24675b6c7b321ab5.zip
cpython-8f5e7d739f56a75022dfe8fa24675b6c7b321ab5.tar.gz
cpython-8f5e7d739f56a75022dfe8fa24675b6c7b321ab5.tar.bz2
gh-108303: Move `smtpd` to `test.support` (#114368)
Update test_logging.py and test_smtplib.py.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 0be2698..908e242 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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: