(self)
| 1088 | |
| 1089 | @os_helper.skip_unless_symlink |
| 1090 | def test_chmod_dir_symlink(self): |
| 1091 | target = self.tempdir() |
| 1092 | link = os_helper.TESTFN + '-link' |
| 1093 | os.symlink(target, link, target_is_directory=True) |
| 1094 | self.addCleanup(posix.unlink, link) |
| 1095 | if os.name == 'nt': |
| 1096 | self.check_lchmod_link(posix.chmod, target, link) |
| 1097 | else: |
| 1098 | self.check_chmod_link(posix.chmod, target, link) |
| 1099 | self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True) |
| 1100 | |
| 1101 | @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()') |
| 1102 | @os_helper.skip_unless_symlink |
nothing calls this directly
no test coverage detected