]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-124682: Disable test that is prone to intermittent failure on iOS. (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 27 Sep 2024 18:28:02 +0000 (20:28 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2024 18:28:02 +0000 (18:28 +0000)
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 10d504aecc56f9481114fe3d0a8d1721d38db7e3)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Lib/test/test_support.py

index d160cbf0645b47f05b884662660a51fb2bc715e1..4310f06924a89dc289c9020837571ed6f45c7c24 100644 (file)
@@ -547,13 +547,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)