Skip to content

Commit dff48e1

Browse files
[3.13] gh-124682: Disable test that is prone to intermittent failure on iOS. (GH-124683) (#124687)
gh-124682: Disable test that is prone to intermittent failure on iOS. (GH-124683) Disable test that is prone to intermittent failure on iOS. (cherry picked from commit 10d504a) Co-authored-by: Russell Keith-Magee <[email protected]>
1 parent 4c97ed4 commit dff48e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Lib/test/test_support.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,13 +547,14 @@ def test_optim_args_from_interpreter_flags(self):
547547
with self.subTest(opts=opts):
548548
self.check_options(opts, 'optim_args_from_interpreter_flags')
549549

550+
@unittest.skipIf(support.is_apple_mobile, "Unstable on Apple Mobile")
550551
@unittest.skipIf(support.is_emscripten, "Unstable in Emscripten")
551552
@unittest.skipIf(support.is_wasi, "Unavailable on WASI")
552553
def test_fd_count(self):
553-
# We cannot test the absolute value of fd_count(): on old Linux
554-
# kernel or glibc versions, os.urandom() keeps a FD open on
555-
# /dev/urandom device and Python has 4 FD opens instead of 3.
556-
# Test is unstable on Emscripten. The platform starts and stops
554+
# We cannot test the absolute value of fd_count(): on old Linux kernel
555+
# or glibc versions, os.urandom() keeps a FD open on /dev/urandom
556+
# device and Python has 4 FD opens instead of 3. Test is unstable on
557+
# Emscripten and Apple Mobile platforms; these platforms start and stop
557558
# background threads that use pipes and epoll fds.
558559
start = os_helper.fd_count()
559560
fd = os.open(__file__, os.O_RDONLY)

0 commit comments

Comments
 (0)