(self)
| 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): |
nothing calls this directly
no test coverage detected