mirror of https://github.com/python/cpython.git
Block the "socket.ssl() is deprecated" warning from test_socket_ssl.
This commit is contained in:
parent
504153d55b
commit
0bfc896979
|
@ -10,6 +10,12 @@
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import urllib
|
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
|
# Optionally test SSL support, if we have it in the tested platform
|
||||||
skip_expected = not hasattr(socket, "ssl")
|
skip_expected = not hasattr(socket, "ssl")
|
||||||
|
|
Loading…
Reference in New Issue