From: Christian Heimes Date: Sun, 11 Sep 2016 20:47:02 +0000 (+0200) Subject: Issue #28022: Catch another deprecation warning in imaplib X-Git-Tag: v3.6.0b1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=727cc9337fe6b2f33e53922a75d329de3c8b4000;p=python Issue #28022: Catch another deprecation warning in imaplib --- diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py index f95ebf4757..63ac810cdd 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):