Skip to content

[3.14] gh-66335: Test uppercase IMAP4 command names (GH-152876)#153081

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-3cd6b74-3.14
Jul 5, 2026
Merged

[3.14] gh-66335: Test uppercase IMAP4 command names (GH-152876)#153081
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-3cd6b74-3.14

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

imaplib.IMAP4.__getattr__ lets a command be called under its uppercase name (client.CAPABILITY() in addition to client.capability()), as documented, and raises AttributeError for an unknown name. This adds a test for that behavior, which the coverage PR left out.

Co-authored with the author of the original bpo-22137 patch, which included this test.
(cherry picked from commit 3cd6b74)

…52876)

Co-authored-by: Milan Oberkirch <zvyn@oberkirch.org>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit 3cd6b74)
@serhiy-storchaka serhiy-storchaka requested a review from a team as a code owner July 5, 2026 08:15
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 5, 2026
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 5, 2026 08:30
@serhiy-storchaka serhiy-storchaka merged commit 683697a into python:3.14 Jul 5, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant