aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/support/os_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/support/os_helper.py')
-rw-r--r--Lib/test/support/os_helper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/support/os_helper.py b/Lib/test/support/os_helper.py
index 8071c248b9b..891405943b7 100644
--- a/Lib/test/support/os_helper.py
+++ b/Lib/test/support/os_helper.py
@@ -632,7 +632,8 @@ def fd_count():
if hasattr(os, 'sysconf'):
try:
MAXFD = os.sysconf("SC_OPEN_MAX")
- except OSError:
+ except (OSError, ValueError):
+ # gh-118201: ValueError is raised intermittently on iOS
pass
old_modes = None