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 baa6417 commit 3474ddfCopy full SHA for 3474ddf
Lib/test/support/os_helper.py
@@ -615,7 +615,8 @@ def fd_count():
615
if hasattr(os, 'sysconf'):
616
try:
617
MAXFD = os.sysconf("SC_OPEN_MAX")
618
- except OSError:
+ except (OSError, ValueError):
619
+ # gh-118201: ValueError is raised intermittently on iOS
620
pass
621
622
old_modes = None
Lib/test/test_os.py
@@ -2372,6 +2372,7 @@ def test_fchown(self):
2372
support.is_emscripten or support.is_wasi,
2373
"musl libc issue on Emscripten/WASI, bpo-46390"
2374
)
2375
+ @unittest.skipIf(support.is_apple_mobile, "gh-118201: Test is flaky on iOS")
2376
def test_fpathconf(self):
2377
self.check(os.pathconf, "PC_NAME_MAX")
2378
self.check(os.fpathconf, "PC_NAME_MAX")
0 commit comments