diff options
author | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-03-18 04:29:35 (GMT) |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-03-18 04:29:35 (GMT) |
commit | 0bfc896979c94b02fe34cbad246b14b9d82ec40a (patch) | |
tree | c56cfdb6d95475bb6f7470c0fe8c3fd365981d8c | |
parent | 504153d55b11aa8f622b6e4baa6a5e94ddfe96e2 (diff) | |
download | cpython-0bfc896979c94b02fe34cbad246b14b9d82ec40a.zip cpython-0bfc896979c94b02fe34cbad246b14b9d82ec40a.tar.gz cpython-0bfc896979c94b02fe34cbad246b14b9d82ec40a.tar.bz2 |
Block the "socket.ssl() is deprecated" warning from test_socket_ssl.
-rw-r--r-- | Lib/test/test_socket_ssl.py | 6 |
1 files changed, 6 insertions, 0 deletions
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") |