mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows (GH-113049)
This commit is contained in:
parent
c6e953be12
commit
29f7eb4859
9 changed files with 93 additions and 28 deletions
|
@ -1019,7 +1019,7 @@ class PosixTester(unittest.TestCase):
|
|||
self.check_lchmod_link(posix.chmod, target, link)
|
||||
else:
|
||||
self.check_chmod_link(posix.chmod, target, link)
|
||||
self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True)
|
||||
self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True)
|
||||
|
||||
@os_helper.skip_unless_symlink
|
||||
def test_chmod_dir_symlink(self):
|
||||
|
@ -1031,7 +1031,7 @@ class PosixTester(unittest.TestCase):
|
|||
self.check_lchmod_link(posix.chmod, target, link)
|
||||
else:
|
||||
self.check_chmod_link(posix.chmod, target, link)
|
||||
self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True)
|
||||
self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True)
|
||||
|
||||
@unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()')
|
||||
@os_helper.skip_unless_symlink
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue