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

Method test_access_dir_fd

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

Source from the content-addressed store, hash-verified

1673
1674 @unittest.skipUnless(os.access in os.supports_dir_fd, "test needs dir_fd support for os.access()")
1675 def test_access_dir_fd(self):
1676 with self.prepare_file() as (dir_fd, name, fullname):
1677 self.assertTrue(posix.access(name, os.R_OK, dir_fd=dir_fd))
1678
1679 @unittest.skipUnless(os.chmod in os.supports_dir_fd, "test needs dir_fd support in os.chmod()")
1680 def test_chmod_dir_fd(self):

Callers

nothing calls this directly

Calls 3

prepare_fileMethod · 0.95
assertTrueMethod · 0.80
accessMethod · 0.80

Tested by

no test coverage detected