mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #28022: Catch another deprecation warning in imaplib
This commit is contained in:
parent
40bed8a536
commit
727cc9337f
1 changed files with 4 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue