Skip to content
Snippets Groups Projects
Unverified Commit 4a31ed8a authored by Victor Stinner's avatar Victor Stinner Committed by GitHub
Browse files

test.pythoninfo no longer requires socket (#93191)

test.pythoninfo no longer fails if "import socket" fails: the socket
module is now optional.
parent 32b7bcff
Branches
Tags
No related merge requests found
......@@ -543,7 +543,10 @@ def format_attr(attr, value):
def collect_socket(info_add):
try:
import socket
except ImportError:
return
try:
hostname = socket.gethostname()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment