From 0bfc896979c94b02fe34cbad246b14b9d82ec40a Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Tue, 18 Mar 2008 04:29:35 +0000 Subject: Block the "socket.ssl() is deprecated" warning from test_socket_ssl. --- Lib/test/test_socket_ssl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index c3fe67e..7003ba6 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") -- cgit v0.12