Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8f3ecd3

Browse filesBrowse files
committed
[3.12] pythongh-118201: Accomodate flaky behavior of os.sysconf on iOS (pythonGH-118453)
1 parent 461a166 commit 8f3ecd3
Copy full SHA for 8f3ecd3

File tree

Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed

‎Lib/test/support/os_helper.py

Copy file name to clipboardExpand all lines: Lib/test/support/os_helper.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ def fd_count():
615615
if hasattr(os, 'sysconf'):
616616
try:
617617
MAXFD = os.sysconf("SC_OPEN_MAX")
618-
except OSError:
618+
except (OSError, ValueError):
619+
# gh-118201: ValueError is raised intermittently on iOS
619620
pass
620621

621622
old_modes = None

‎Lib/test/test_os.py

Copy file name to clipboardExpand all lines: Lib/test/test_os.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,6 +2372,7 @@ def test_fchown(self):
23722372
support.is_emscripten or support.is_wasi,
23732373
"musl libc issue on Emscripten/WASI, bpo-46390"
23742374
)
2375+
@unittest.skipIf(support.is_apple_mobile, "gh-118201: Test is flaky on iOS")
23752376
def test_fpathconf(self):
23762377
self.check(os.pathconf, "PC_NAME_MAX")
23772378
self.check(os.fpathconf, "PC_NAME_MAX")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.