Skip to content

Commit 1433234

Browse files
freakboy3742pull[bot]
authored andcommitted
gh-124682: Disable test that is prone to intermittent failure on iOS. (#124683)
Disable test that is prone to intermittent failure on iOS.
1 parent ea29503 commit 1433234

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Lib/test/test_support.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -548,13 +548,14 @@ def test_optim_args_from_interpreter_flags(self):
548548
with self.subTest(opts=opts):
549549
self.check_options(opts, 'optim_args_from_interpreter_flags')
550550

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

0 commit comments

Comments
 (0)