Skip to content

Commit 92b33c9

Browse files
authored
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).
1 parent 92f392a commit 92b33c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_tempfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,7 @@ def test_unexpected_error(self):
15941594
mock_close.assert_called()
15951595
self.assertEqual(os.listdir(dir), [])
15961596

1597+
@os_helper.skip_unless_hardlink
15971598
@unittest.skipUnless(tempfile._O_TMPFILE_WORKS, 'need os.O_TMPFILE')
15981599
@unittest.skipUnless(os.path.exists('/proc/self/fd'),
15991600
'need /proc/self/fd')

0 commit comments

Comments
 (0)