MCPcopy Create free account
hub / github.com/RustPython/RustPython / test_lchmod_dir

Method test_lchmod_dir

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

tempdirMethod · 0.95
check_chmodMethod · 0.95

Tested by

no test coverage detected