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

Method test_lchmod_dir_symlink

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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

tempdirMethod · 0.95
check_lchmod_linkMethod · 0.95
addCleanupMethod · 0.80

Tested by

no test coverage detected