summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imaplib.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-16 17:55:26 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-16 17:55:26 (GMT)
commitdbe7519da9d0a99d68aaa773cde2793900dad44f (patch)
tree71e84e5f556b6021132452a1c3a7f7ac440fe6e1 /Lib/test/test_imaplib.py
parent36c0dbc9be1f21feec2218e3357fbf3a4dded8c1 (diff)
downloadcpython-dbe7519da9d0a99d68aaa773cde2793900dad44f.zip
cpython-dbe7519da9d0a99d68aaa773cde2793900dad44f.tar.gz
cpython-dbe7519da9d0a99d68aaa773cde2793900dad44f.tar.bz2
Issue #10429: IMAP.starttls() stored the capabilities as bytes objects,
rather than strings.
Diffstat (limited to 'Lib/test/test_imaplib.py')
-rw-r--r--Lib/test/test_imaplib.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py
index 6b44490..b97989f 100644
--- a/Lib/test/test_imaplib.py
+++ b/Lib/test/test_imaplib.py
@@ -208,6 +208,8 @@ class RemoteIMAPTest(unittest.TestCase):
self.server.logout()
def test_logincapa(self):
+ for cap in self.server.capabilities:
+ self.assertIsInstance(cap, str)
self.assertTrue('LOGINDISABLED' in self.server.capabilities)
self.assertTrue('AUTH=ANONYMOUS' in self.server.capabilities)
rs = self.server.login(self.username, self.password)
@@ -228,6 +230,8 @@ class RemoteIMAP_STARTTLSTest(RemoteIMAPTest):
self.assertEqual(rs[0], 'OK')
def test_logincapa(self):
+ for cap in self.server.capabilities:
+ self.assertIsInstance(cap, str)
self.assertFalse('LOGINDISABLED' in self.server.capabilities)
@@ -237,6 +241,8 @@ class RemoteIMAP_SSLTest(RemoteIMAPTest):
imap_class = IMAP4_SSL
def test_logincapa(self):
+ for cap in self.server.capabilities:
+ self.assertIsInstance(cap, str)
self.assertFalse('LOGINDISABLED' in self.server.capabilities)
self.assertTrue('AUTH=PLAIN' in self.server.capabilities)