MCPcopy Create free account
hub / github.com/python/cpython / test_chmod_file_symlink

Method test_chmod_file_symlink

Lib/test/test_os/test_posix.py:1138–1147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1136
1137 @os_helper.skip_unless_symlink
1138 def test_chmod_file_symlink(self):
1139 target = os_helper.TESTFN
1140 link = os_helper.TESTFN + '-link'
1141 os.symlink(target, link)
1142 self.addCleanup(posix.unlink, link)
1143 if os.name == 'nt':
1144 self.check_lchmod_link(posix.chmod, target, link)
1145 else:
1146 self.check_chmod_link(posix.chmod, target, link)
1147 self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True)
1148
1149 @os_helper.skip_unless_symlink
1150 def test_chmod_dir_symlink(self):

Callers

nothing calls this directly

Calls 3

check_lchmod_linkMethod · 0.95
check_chmod_linkMethod · 0.95
addCleanupMethod · 0.80

Tested by

no test coverage detected