Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-108303: Movesmtpd totest.support#114368

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromsobolevn:issue-108303-smtpd
Jan 22, 2024

Conversation

@sobolevn
Copy link
Member

@sobolevnsobolevn commentedJan 21, 2024
edited
Loading

This module was removed from stdlib in#93246
But, since it is not really a test file, it should have been moved toLib/test/support, notLib/test. This PR fixes that :)

Now this is in line withasyncore andasynchat.

@sobolevnsobolevn requested review froma team andvsajip ascode ownersJanuary 21, 2024 07:19
@sobolevnsobolevn added skip news needs backport to 3.11only security fixes needs backport to 3.12only security fixes labelsJan 21, 2024
@AlexWaygoodAlexWaygood changed the titlegh-108303: Movestmpd totest.supportgh-108303: Movesmtpd totest.supportJan 21, 2024
@vstinner
Copy link
Member

This change should not be backported to 3.11: it was done in Python 3.12.

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM.

fromsocketserverimport (ThreadingUDPServer,DatagramRequestHandler,
ThreadingTCPServer,StreamRequestHandler)

withwarnings.catch_warnings():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The change removeswith warnings.catch_warnings(): but apparently, it's useless. The test still pass without it:

$ ./python -Werror -m test test_logging test_smtplib -j0Using random seed: 15983232010:00:00 load avg: 0.96 Run 2 tests in parallel using 2 worker processes0:00:02 load avg: 1.37 [1/2] test_smtplib passed0:00:18 load avg: 1.22 [2/2] test_logging passed== Tests result: SUCCESS ==All 2 tests OK.Total duration: 18.9 secTotal tests: run=317 skipped=2Total test files: run=2/2Result: SUCCESS

@vstinnervstinner merged commit8f5e7d7 intopython:mainJan 22, 2024
@miss-islington-app
Copy link

Thanks@sobolevn for the PR, and@vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJan 22, 2024
Update test_logging.py and test_smtplib.py.(cherry picked from commit8f5e7d7)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-app
Copy link

GH-114427 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelJan 22, 2024
@vstinner
Copy link
Member

Merged, thanks.

vstinner pushed a commit that referenced this pull requestJan 22, 2024
gh-108303: Move `smtpd` to `test.support` (GH-114368)Update test_logging.py and test_smtplib.py.(cherry picked from commit8f5e7d7)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
Update test_logging.py and test_smtplib.py.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
Update test_logging.py and test_smtplib.py.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vsajipvsajipvsajip approved these changes

@vstinnervstinnervstinner approved these changes

@arhadthedevarhadthedevAwaiting requested review from arhadthedev

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@sobolevn@vstinner@vsajip

[8]ページ先頭

©2009-2025 Movatter.jp