From: Victor Stinner Date: Wed, 9 Jul 2025 22:17:21 +0000 (+0200) Subject: gh-136156: Skip test_tempfile.test_link_tmpfile() on Android (#136430) X-Git-Tag: v3.15.0a1~1033 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92b33c9590140263343c3e780bfc2ea1c1aded5c;p=thirdparty%2FPython%2Fcpython.git 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). --- 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')