mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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).
This commit is contained in:
parent
92f392ad9e
commit
92b33c9590
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue