8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os.sysconf
1 parent 3345321 commit 9e9433fCopy full SHA for 9e9433f
Lib/test/support/os_helper.py
@@ -632,7 +632,8 @@ def fd_count():
632
if hasattr(os, 'sysconf'):
633
try:
634
MAXFD = os.sysconf("SC_OPEN_MAX")
635
- except OSError:
+ except (OSError, ValueError):
636
+ # gh-118201: ValueError is raised intermittently on iOS
637
pass
638
639
old_modes = None
Lib/test/test_os.py
@@ -2365,6 +2365,7 @@ def test_fchown(self):
2365
support.is_emscripten or support.is_wasi,
2366
"musl libc issue on Emscripten/WASI, bpo-46390"
2367
)
2368
+ @unittest.skipIf(support.is_apple_mobile, "gh-118201: Test is flaky on iOS")
2369
def test_fpathconf(self):
2370
self.check(os.pathconf, "PC_NAME_MAX")
2371
self.check(os.fpathconf, "PC_NAME_MAX")
0 commit comments