]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-55258: Skip tests of stdout status on mobile platforms (#140401)
authorRussell Keith-Magee <russell@keith-magee.com>
Tue, 21 Oct 2025 23:12:26 +0000 (07:12 +0800)
committerGitHub <noreply@github.com>
Tue, 21 Oct 2025 23:12:26 +0000 (07:12 +0800)
Skip tests of stdout status on mobile platforms.

Lib/test/test_support.py

index 92909519636cf328ebe1c3f1268ffefa2a67e763..d69328a6a6ac90c67471419ded6aa731184d83ce 100644 (file)
@@ -96,6 +96,8 @@ class TestSupport(unittest.TestCase):
                         self.test_get_attribute)
         self.assertRaises(unittest.SkipTest, support.get_attribute, self, "foo")
 
+    @unittest.skipIf(support.is_android or support.is_apple_mobile,
+                     'Mobile platforms redirect stdout to system log')
     def test_get_original_stdout(self):
         if isinstance(sys.stdout, io.StringIO):
             # gh-55258: When --junit-xml is used, stdout is a StringIO: