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

Method test_chmod_file_symlink

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

Source from the content-addressed store, hash-verified

1076
1077 @os_helper.skip_unless_symlink
1078 def test_chmod_file_symlink(self):
1079 target = os_helper.TESTFN
1080 link = os_helper.TESTFN + '-link'
1081 os.symlink(target, link)
1082 self.addCleanup(posix.unlink, link)
1083 if os.name == 'nt':
1084 self.check_lchmod_link(posix.chmod, target, link)
1085 else:
1086 self.check_chmod_link(posix.chmod, target, link)
1087 self.check_chmod_link(posix.chmod, target, link, follow_symlinks=True)
1088
1089 @os_helper.skip_unless_symlink
1090 def test_chmod_dir_symlink(self):

Callers

nothing calls this directly

Calls 3

check_lchmod_linkMethod · 0.95
check_chmod_linkMethod · 0.95
addCleanupMethod · 0.80

Tested by

no test coverage detected