https://github.com/python/cpython/commit/92b33c9590140263343c3e780bfc2ea1c1aded5c
commit: 92b33c9590140263343c3e780bfc2ea1c1aded5c
branch: main
author: Victor Stinner <vstin...@python.org>
committer: freakboy3742 <russ...@keith-magee.com>
date: 2025-07-10T06:17:21+08:00
summary:

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).

files:
M Lib/test/test_tempfile.py

diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 36151b016ea35b..aeca62cf2564bc 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -1594,6 +1594,7 @@ def test_unexpected_error(self):
             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')

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to