We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
os.sysconf
1 parent 61e59de commit bc9ec88Copy full SHA for bc9ec88
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
@@ -2298,6 +2298,7 @@ def test_fchown(self):
2298
support.is_emscripten or support.is_wasi,
2299
"musl libc issue on Emscripten/WASI, bpo-46390"
2300
)
2301
+ @unittest.skipIf(support.is_apple_mobile, "gh-118201: Test is flaky on iOS")
2302
def test_fpathconf(self):
2303
self.check(os.pathconf, "PC_NAME_MAX")
2304
self.check(os.fpathconf, "PC_NAME_MAX")
0 commit comments