summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2024-09-27 17:49:35 (GMT)
committerGitHub <noreply@github.com>2024-09-27 17:49:35 (GMT)
commit10d504aecc56f9481114fe3d0a8d1721d38db7e3 (patch)
tree9716d41557315bcf9e25fa83232f2f2cee1e7784 /Lib/test/test_support.py
parente349f73a5ad2856b0a7cbe4aef7cc081c7aed777 (diff)
downloadcpython-10d504aecc56f9481114fe3d0a8d1721d38db7e3.zip
cpython-10d504aecc56f9481114fe3d0a8d1721d38db7e3.tar.gz
cpython-10d504aecc56f9481114fe3d0a8d1721d38db7e3.tar.bz2
gh-124682: Disable test that is prone to intermittent failure on iOS. (#124683)
Disable test that is prone to intermittent failure on iOS.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index e60e547..9a3cf14 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -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)