(self)
| 1148 | |
| 1149 | @os_helper.skip_unless_symlink |
| 1150 | def test_chmod_dir_symlink(self): |
| 1151 | target = self.tempdir() |
| 1152 | link = os_helper.TESTFN + '-link' |
| 1153 | os.symlink(target, link, target_is_directory=True) |
| 1154 | self.addCleanup(posix.unlink, link) |
| 1155 | if os.name == 'nt': |
| 1156 | self.check_lchmod_link(posix.chmod, target, link) |
| 1157 | else: |
| 1158 | self.check_chmod_link(posix.chmod, target, link) |
| 1159 | self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True) |
| 1160 | |
| 1161 | @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()') |
| 1162 | @os_helper.skip_unless_symlink |
nothing calls this directly
no test coverage detected