(self)
| 1076 | |
| 1077 | @os_helper.skip_unless_symlink |
| 1078 | def test_chmod_file_symlink(self): |
| 1079 | target = os_helper.TESTFN |
| 1080 | link = os_helper.TESTFN + '-link' |
| 1081 | os.symlink(target, link) |
| 1082 | self.addCleanup(posix.unlink, link) |
| 1083 | if os.name == 'nt': |
| 1084 | self.check_lchmod_link(posix.chmod, target, link) |
| 1085 | else: |
| 1086 | self.check_chmod_link(posix.chmod, target, link) |
| 1087 | self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True) |
| 1088 | |
| 1089 | @os_helper.skip_unless_symlink |
| 1090 | def test_chmod_dir_symlink(self): |
nothing calls this directly
no test coverage detected