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

Method test_fchmod_file

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

Source from the content-addressed store, hash-verified

1092
1093 @os_helper.skip_unless_working_chmod
1094 def test_fchmod_file(self):
1095 with open(os_helper.TESTFN, 'wb+') as f:
1096 self.check_chmod(posix.fchmod, f.fileno())
1097 self.check_chmod(posix.chmod, f.fileno())
1098
1099 @unittest.skipUnless(hasattr(posix, 'lchmod'), 'test needs os.lchmod()')
1100 def test_lchmod_file(self):

Callers

nothing calls this directly

Calls 3

check_chmodMethod · 0.95
openFunction · 0.50
filenoMethod · 0.45

Tested by

no test coverage detected