MCPcopy Create free account
hub / github.com/python/cpython / test_chown_dir_fd

Method test_chown_dir_fd

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

Source from the content-addressed store, hash-verified

1689 "test needs dir_fd support in os.chown()")
1690 @unittest.skipIf(support.is_emscripten, "getgid() is a stub")
1691 def test_chown_dir_fd(self):
1692 with self.prepare_file() as (dir_fd, name, fullname):
1693 posix.chown(name, os.getuid(), os.getgid(), dir_fd=dir_fd)
1694
1695 def check_statlike_dir_fd(self, func, prefix):
1696 with self.prepare() as (dir_fd, name, fullname):

Callers

nothing calls this directly

Calls 2

prepare_fileMethod · 0.95
chownMethod · 0.80

Tested by

no test coverage detected