mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
611d43c2a4
commit
7afccd34a6
20 changed files with 109 additions and 14 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue