]> granicus.if.org Git - python/commitdiff
Issue #28022: Catch another deprecation warning in imaplib
authorChristian Heimes <christian@python.org>
Sun, 11 Sep 2016 20:47:02 +0000 (22:47 +0200)
committerChristian Heimes <christian@python.org>
Sun, 11 Sep 2016 20:47:02 +0000 (22:47 +0200)
Lib/test/test_imaplib.py

index f95ebf4757110a4346abbe9bf0f0e462490f170f..63ac810cdd1a7b9286967ef52f78b9236f50d4d0 100644 (file)
@@ -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):