Skip to content

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

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

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

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 enabled auto-merge (squash) July 5, 2026 08:29
@serhiy-storchaka serhiy-storchaka merged commit 94f4648 into python:3.13 Jul 5, 2026
42 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