mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Block the "socket.ssl() is deprecated" warning from test_socket_ssl.
This commit is contained in:
parent
504153d55b
commit
0bfc896979
1 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue