(self)
| 1043 | |
| 1044 | @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()') |
| 1045 | def test_lchmod_dir(self): |
| 1046 | target = self.tempdir() |
| 1047 | self.check_chmod(posix.lchmod, target) |
| 1048 | self.check_chmod(posix.chmod, target, follow_symlinks=False) |
| 1049 | |
| 1050 | def check_chmod_link(self, chmod_func, target, link, **kwargs): |
| 1051 | target_mode = os.stat(target).st_mode |
nothing calls this directly
no test coverage detected