MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_lchmod_file_symlink

Method test_lchmod_file_symlink

Lib/test/test_posix.py:1103–1109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

check_lchmod_linkMethod · 0.95
addCleanupMethod · 0.80

Tested by

no test coverage detected