MCPcopy Index your code
hub / github.com/python/cpython / test_lchmod_dir

Method test_lchmod_dir

Lib/test/test_os/test_posix.py:1105–1108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1103
1104 @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()')
1105 def test_lchmod_dir(self):
1106 target = self.tempdir()
1107 self.check_chmod(posix.lchmod, target)
1108 self.check_chmod(posix.chmod, target, follow_symlinks=False)
1109
1110 def check_chmod_link(self, chmod_func, target, link, **kwargs):
1111 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