diff options
Diffstat (limited to 'Lib/test/test_poplib.py')
-rw-r--r-- | Lib/test/test_poplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py index 5488683..c5ae9f7 100644 --- a/Lib/test/test_poplib.py +++ b/Lib/test/test_poplib.py @@ -155,7 +155,7 @@ class DummyPOP3Handler(asynchat.async_chat): def cmd_stls(self, arg): if self.tls_active is False: self.push('+OK Begin TLS negotiation') - context = ssl.SSLContext() + context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) context.load_cert_chain(CERTFILE) tls_sock = context.wrap_socket(self.socket, server_side=True, |