File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -517,7 +517,8 @@ def fd_count():
517
517
if hasattr (os , 'sysconf' ):
518
518
try :
519
519
MAXFD = os .sysconf ("SC_OPEN_MAX" )
520
- except OSError :
520
+ except (OSError , ValueError ):
521
+ # gh-118201: ValueError is raised intermittently on iOS
521
522
pass
522
523
523
524
old_modes = None
Original file line number Diff line number Diff line change @@ -2183,6 +2183,7 @@ def test_fchown(self):
2183
2183
self .check (os .fchown , - 1 , - 1 )
2184
2184
2185
2185
@unittest .skipUnless (hasattr (os , 'fpathconf' ), 'test needs os.fpathconf()' )
2186
+ @unittest .skipIf (support .is_apple_mobile , "gh-118201: Test is flaky on iOS" )
2186
2187
def test_fpathconf (self ):
2187
2188
self .check (os .pathconf , "PC_NAME_MAX" )
2188
2189
self .check (os .fpathconf , "PC_NAME_MAX" )
You can’t perform that action at this time.
0 commit comments