0
0
mirror of https://github.com/python/cpython.git synced 2024-11-21 12:59:38 +01:00

gh-124682: Disable test that is prone to intermittent failure on iOS. (#124683)

Disable test that is prone to intermittent failure on iOS.
This commit is contained in:
Russell Keith-Magee 2024-09-27 10:49:35 -07:00 committed by GitHub
parent e349f73a5a
commit 10d504aecc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -548,13 +548,14 @@ class TestSupport(unittest.TestCase):
with self.subTest(opts=opts):
self.check_options(opts, 'optim_args_from_interpreter_flags')
@unittest.skipIf(support.is_apple_mobile, "Unstable on Apple Mobile")
@unittest.skipIf(support.is_emscripten, "Unstable in Emscripten")
@unittest.skipIf(support.is_wasi, "Unavailable on WASI")
def test_fd_count(self):
# We cannot test the absolute value of fd_count(): on old Linux
# kernel or glibc versions, os.urandom() keeps a FD open on
# /dev/urandom device and Python has 4 FD opens instead of 3.
# Test is unstable on Emscripten. The platform starts and stops
# We cannot test the absolute value of fd_count(): on old Linux kernel
# or glibc versions, os.urandom() keeps a FD open on /dev/urandom
# device and Python has 4 FD opens instead of 3. Test is unstable on
# Emscripten and Apple Mobile platforms; these platforms start and stop
# background threads that use pipes and epoll fds.
start = os_helper.fd_count()
fd = os.open(__file__, os.O_RDONLY)