(self)
| 1111 | @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()') |
| 1112 | @os_helper.skip_unless_symlink |
| 1113 | def test_lchmod_dir_symlink(self): |
| 1114 | target = self.tempdir() |
| 1115 | link = os_helper.TESTFN + '-link' |
| 1116 | os.symlink(target, link) |
| 1117 | self.addCleanup(posix.unlink, link) |
| 1118 | self.check_lchmod_link(posix.chmod, target, link, follow_symlinks=False) |
| 1119 | self.check_lchmod_link(posix.lchmod, target, link) |
| 1120 | |
| 1121 | def _test_chflags_regular_file(self, chflags_func, target_file, **kwargs): |
| 1122 | st = os.stat(target_file) |
nothing calls this directly
no test coverage detected