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 ea6809b commit bea8b1bCopy full SHA for bea8b1b
Lib/test/support/os_helper.py
@@ -613,7 +613,8 @@ def fd_count():
613
if hasattr(os, 'sysconf'):
614
try:
615
MAXFD = os.sysconf("SC_OPEN_MAX")
616
- except OSError:
+ except (OSError, ValueError):
617
+ # gh-118201: ValueError is raised intermittently on iOS
618
pass
619
620
old_modes = None
Lib/test/test_os.py
@@ -2286,6 +2286,7 @@ def test_fchown(self):
2286
support.is_emscripten or support.is_wasi,
2287
"musl libc issue on Emscripten/WASI, bpo-46390"
2288
)
2289
+ @unittest.skipIf(support.is_apple_mobile, "gh-118201: Test is flaky on iOS")
2290
def test_fpathconf(self):
2291
self.check(os.pathconf, "PC_NAME_MAX")
2292
self.check(os.fpathconf, "PC_NAME_MAX")
0 commit comments