(self)
| 1101 | @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()') |
| 1102 | @os_helper.skip_unless_symlink |
| 1103 | def test_lchmod_file_symlink(self): |
| 1104 | target = os_helper.TESTFN |
| 1105 | link = os_helper.TESTFN + '-link' |
| 1106 | os.symlink(target, link) |
| 1107 | self.addCleanup(posix.unlink, link) |
| 1108 | self.check_lchmod_link(posix.chmod, target, link, follow_symlinks=False) |
| 1109 | self.check_lchmod_link(posix.lchmod, target, link) |
| 1110 | |
| 1111 | @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()') |
| 1112 | @os_helper.skip_unless_symlink |
nothing calls this directly
no test coverage detected