(self)
| 1171 | @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()') |
| 1172 | @os_helper.skip_unless_symlink |
| 1173 | def test_lchmod_dir_symlink(self): |
| 1174 | target = self.tempdir() |
| 1175 | link = os_helper.TESTFN + '-link' |
| 1176 | os.symlink(target, link) |
| 1177 | self.addCleanup(posix.unlink, link) |
| 1178 | self.check_lchmod_link(posix.chmod, target, link, follow_symlinks=False) |
| 1179 | self.check_lchmod_link(posix.lchmod, target, link) |
| 1180 | |
| 1181 | def _test_chflags_regular_file(self, chflags_func, target_file, **kwargs): |
| 1182 | st = os.stat(target_file) |
nothing calls this directly
no test coverage detected