-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-108303: Move smtpd
to test.support
#114368
Conversation
stmpd
to test.support
smtpd
to test.support
This change should not be backported to 3.11: it was done in Python 3.12. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -63,9 +64,6 @@ | |||
from socketserver import (ThreadingUDPServer, DatagramRequestHandler, | |||
ThreadingTCPServer, StreamRequestHandler) | |||
|
|||
with warnings.catch_warnings(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change removes with warnings.catch_warnings():
but apparently, it's useless. The test still pass without it:
$ ./python -Werror -m test test_logging test_smtplib -j0
Using random seed: 1598323201
0:00:00 load avg: 0.96 Run 2 tests in parallel using 2 worker processes
0:00:02 load avg: 1.37 [1/2] test_smtplib passed
0:00:18 load avg: 1.22 [2/2] test_logging passed
== Tests result: SUCCESS ==
All 2 tests OK.
Total duration: 18.9 sec
Total tests: run=317 skipped=2
Total test files: run=2/2
Result: SUCCESS
Update test_logging.py and test_smtplib.py. (cherry picked from commit 8f5e7d7) Co-authored-by: Nikita Sobolev <[email protected]>
GH-114427 is a backport of this pull request to the 3.12 branch. |
Merged, thanks. |
Update test_logging.py and test_smtplib.py.
Update test_logging.py and test_smtplib.py.
This module was removed from stdlib in #93246
But, since it is not really a test file, it should have been moved to
Lib/test/support
, notLib/test
. This PR fixes that :)Now this is in line with
asyncore
andasynchat
.