From: Jeffrey Yasskin Date: Tue, 18 Mar 2008 04:29:35 +0000 (+0000) Subject: Block the "socket.ssl() is deprecated" warning from test_socket_ssl. X-Git-Tag: v2.6a2~286 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bfc896979c94b02fe34cbad246b14b9d82ec40a;p=python Block the "socket.ssl() is deprecated" warning from test_socket_ssl. --- diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index c3fe67ebc8..7003ba6db5 100644 --- a/Lib/test/test_socket_ssl.py +++ b/Lib/test/test_socket_ssl.py @@ -10,6 +10,12 @@ import subprocess import time import os import urllib +import warnings + +warnings.filterwarnings( + 'ignore', + 'socket.ssl.. is deprecated. Use ssl.wrap_socket.. instead.', + DeprecationWarning) # Optionally test SSL support, if we have it in the tested platform skip_expected = not hasattr(socket, "ssl")