We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
os.sysconf
1 parent 6735e6b commit a645241Copy full SHA for a645241
2 files changed
Lib/test/support/os_helper.py
@@ -517,7 +517,8 @@ def fd_count():
517
if hasattr(os, 'sysconf'):
518
try:
519
MAXFD = os.sysconf("SC_OPEN_MAX")
520
- except OSError:
+ except (OSError, ValueError):
521
+ # gh-118201: ValueError is raised intermittently on iOS
522
pass
523
524
old_modes = None
Lib/test/test_os.py
@@ -2183,6 +2183,7 @@ def test_fchown(self):
2183
self.check(os.fchown, -1, -1)
2184
2185
@unittest.skipUnless(hasattr(os, 'fpathconf'), 'test needs os.fpathconf()')
2186
+ @unittest.skipIf(support.is_apple_mobile, "gh-118201: Test is flaky on iOS")
2187
def test_fpathconf(self):
2188
self.check(os.pathconf, "PC_NAME_MAX")
2189
self.check(os.fpathconf, "PC_NAME_MAX")
0 commit comments