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

Method test_chmod_dir_symlink

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

Source from the content-addressed store, hash-verified

1088
1089 @os_helper.skip_unless_symlink
1090 def test_chmod_dir_symlink(self):
1091 target = self.tempdir()
1092 link = os_helper.TESTFN + '-link'
1093 os.symlink(target, link, target_is_directory=True)
1094 self.addCleanup(posix.unlink, link)
1095 if os.name == 'nt':
1096 self.check_lchmod_link(posix.chmod, target, link)
1097 else:
1098 self.check_chmod_link(posix.chmod, target, link)
1099 self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True)
1100
1101 @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()')
1102 @os_helper.skip_unless_symlink

Callers

nothing calls this directly

Calls 4

tempdirMethod · 0.95
check_lchmod_linkMethod · 0.95
check_chmod_linkMethod · 0.95
addCleanupMethod · 0.80

Tested by

no test coverage detected