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

Method test_chown_dir_fd

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

Source from the content-addressed store, hash-verified

1629 "test needs dir_fd support in os.chown()")
1630 @unittest.skipIf(support.is_emscripten, "getgid() is a stub")
1631 def test_chown_dir_fd(self):
1632 with self.prepare_file() as (dir_fd, name, fullname):
1633 posix.chown(name, os.getuid(), os.getgid(), dir_fd=dir_fd)
1634
1635 @unittest.skipUnless(os.stat in os.supports_dir_fd, "test needs dir_fd support in os.stat()")
1636 def test_stat_dir_fd(self):

Callers

nothing calls this directly

Calls 2

prepare_fileMethod · 0.95
chownMethod · 0.80

Tested by

no test coverage detected