]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136156: Skip test_tempfile.test_link_tmpfile() on Android (#136430)
authorVictor Stinner <vstinner@python.org>
Wed, 9 Jul 2025 22:17:21 +0000 (00:17 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Jul 2025 22:17:21 +0000 (06:17 +0800)
Adds a test skip on platforms where hard links are not available (which includes Android).

Lib/test/test_tempfile.py

index 36151b016ea35bf5402634020bdffc9d7dce954c..aeca62cf2564bcaf593c296a552efa1de5f3314d 100644 (file)
@@ -1594,6 +1594,7 @@ if tempfile.NamedTemporaryFile is not tempfile.TemporaryFile:
             mock_close.assert_called()
             self.assertEqual(os.listdir(dir), [])
 
+        @os_helper.skip_unless_hardlink
         @unittest.skipUnless(tempfile._O_TMPFILE_WORKS, 'need os.O_TMPFILE')
         @unittest.skipUnless(os.path.exists('/proc/self/fd'),
                              'need /proc/self/fd')