summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2008-03-18 04:29:35 (GMT)
committerJeffrey Yasskin <jyasskin@gmail.com>2008-03-18 04:29:35 (GMT)
commit0bfc896979c94b02fe34cbad246b14b9d82ec40a (patch)
treec56cfdb6d95475bb6f7470c0fe8c3fd365981d8c
parent504153d55b11aa8f622b6e4baa6a5e94ddfe96e2 (diff)
downloadcpython-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.py6
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")