]> granicus.if.org Git - python/commitdiff
Block the "socket.ssl() is deprecated" warning from test_socket_ssl.
authorJeffrey Yasskin <jyasskin@gmail.com>
Tue, 18 Mar 2008 04:29:35 +0000 (04:29 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Tue, 18 Mar 2008 04:29:35 +0000 (04:29 +0000)
Lib/test/test_socket_ssl.py

index c3fe67ebc82fe2512d5be13f1fb6d135b32a63ad..7003ba6db55187f71e916b8bca3a53eadca404e6 100644 (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")