Block the "socket.ssl() is deprecated" warning from test_socket_ssl.

This commit is contained in:
Jeffrey Yasskin 2008-03-18 04:29:35 +00:00
parent 504153d55b
commit 0bfc896979
1 changed files with 6 additions and 0 deletions

View File

@ -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")