Skip to content

Commit

Permalink
pythongh-118201: Accomodate flaky behavior of os.sysconf on iOS (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 authored May 1, 2024
1 parent 7d83f7b commit 21336aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/support/os_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -2365,6 +2365,7 @@ def test_fchown(self):
support.is_emscripten or support.is_wasi,
"musl libc issue on Emscripten/WASI, bpo-46390"
)
@unittest.skipIf(support.is_apple_mobile, "gh-118201: Test is flaky on iOS")
def test_fpathconf(self):
self.check(os.pathconf, "PC_NAME_MAX")
self.check(os.fpathconf, "PC_NAME_MAX")
Expand Down

0 comments on commit 21336aa

Please sign in to comment.