aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-11 22:47:02 +0200
committerChristian Heimes <christian@python.org>2016-09-11 22:47:02 +0200
commit727cc9337fe6b2f33e53922a75d329de3c8b4000 (patch)
tree4d803f289c6b485d8c64d3e5985a3418b4ab303c /Lib/test/test_imaplib.py
parentissue28083: add IntFlag constants (diff)
downloadcpython-727cc9337fe6b2f33e53922a75d329de3c8b4000.tar.gz
cpython-727cc9337fe6b2f33e53922a75d329de3c8b4000.tar.bz2
cpython-727cc9337fe6b2f33e53922a75d329de3c8b4000.zip
Issue #28022: Catch another deprecation warning in imaplib
Diffstat (limited to 'Lib/test/test_imaplib.py')
-rw-r--r--Lib/test/test_imaplib.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py
index f95ebf47571..63ac810cdd1 100644
--- a/Lib/test/test_imaplib.py
+++ b/Lib/test/test_imaplib.py
@@ -638,8 +638,10 @@ class RemoteIMAP_SSLTest(RemoteIMAPTest):
def test_logincapa_with_client_certfile(self):
with transient_internet(self.host):
- _server = self.imap_class(self.host, self.port, certfile=CERTFILE)
- self.check_logincapa(_server)
+ with support.check_warnings(('', DeprecationWarning)):
+ _server = self.imap_class(self.host, self.port,
+ certfile=CERTFILE)
+ self.check_logincapa(_server)
def test_logincapa_with_client_ssl_context(self):
with transient_internet(self.host):