[Python-checkins] r61488 - python/trunk/Lib/test/test_socket_ssl.py

jeffrey.yasskin python-checkins at python.org
Tue Mar 18 05:29:35 CET 2008


Author: jeffrey.yasskin
Date: Tue Mar 18 05:29:35 2008
New Revision: 61488

Modified:
   python/trunk/Lib/test/test_socket_ssl.py
Log:
Block the "socket.ssl() is deprecated" warning from test_socket_ssl.


Modified: python/trunk/Lib/test/test_socket_ssl.py
==============================================================================
--- python/trunk/Lib/test/test_socket_ssl.py	(original)
+++ python/trunk/Lib/test/test_socket_ssl.py	Tue Mar 18 05:29:35 2008
@@ -10,6 +10,12 @@
 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")


More information about the Python-checkins mailing list