From 92b33c9590140263343c3e780bfc2ea1c1aded5c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 10 Jul 2025 00:17:21 +0200 Subject: [PATCH] gh-136156: Skip test_tempfile.test_link_tmpfile() on Android (#136430) Adds a test skip on platforms where hard links are not available (which includes Android). --- Lib/test/test_tempfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 36151b016ea3..aeca62cf2564 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -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') -- 2.47.3