Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[3.14] gh-66335: Test uppercase IMAP4 command names (GH-152876)
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)
  • Loading branch information
3 people committed Jul 5, 2026
commit fc1c42835de94adfdb292b1dceed9a463d636c5e
10 changes: 10 additions & 0 deletions Lib/test/test_imaplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,16 @@ def test_xatom(self):
self.assertEqual(data, [b'MYCOMMAND completed'])
self.assertEqual(server.args, ['arg1', 'arg2'])

def test_uppercase_command_names(self):
client, server = self._setup(SimpleIMAPHandler)
client.login('user', 'pass')
self.assertEqual(client.CAPABILITY, client.capability)
self.assertEqual(client.SELECT, client.select)
typ, data = client.CAPABILITY()
self.assertEqual(typ, 'OK')
with self.assertRaises(AttributeError):
client.NONEXISTENT

# property tests

def test_file_property_should_not_be_accessed(self):
Expand Down
Loading