aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/support
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2024-05-01 10:31:00 +0800
committerGitHub <noreply@github.com>2024-04-30 22:31:00 -0400
commit21336aa12762ffe33bac83c7bd7992fcf42eee10 (patch)
tree3a85c59ea1eb8e04152d5a0dec89ada044824af9 /Lib/test/support
parent7d83f7bcc484145596bae1ff015fed0762da345d (diff)
downloadcpython-21336aa12762ffe33bac83c7bd7992fcf42eee10.tar.gz
cpython-21336aa12762ffe33bac83c7bd7992fcf42eee10.zip
gh-118201: Accomodate flaky behavior of `os.sysconf` on iOS (GH-118453)
Diffstat (limited to 'Lib/test/support')
-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