gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)

(cherry picked from commit 137fd3d88a)

Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
Miss Islington (bot) 2022-05-19 08:05:52 -07:00 committed by GitHub
parent 611d43c2a4
commit 7afccd34a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 109 additions and 14 deletions

View file

@ -545,8 +545,14 @@ def collect_ssl(info_add):
def collect_socket(info_add):
import socket
hostname = socket.gethostname()
info_add('socket.hostname', hostname)
try:
hostname = socket.gethostname()
except OSError:
# WASI SDK 15.0 does not have gethostname(2).
if sys.platform != "wasi":
raise
else:
info_add('socket.hostname', hostname)
def collect_sqlite(info_add):