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

Method test_rename_dir_fd

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

Source from the content-addressed store, hash-verified

1759
1760 @unittest.skipUnless(os.rename in os.supports_dir_fd, "test needs dir_fd support in os.rename()")
1761 def test_rename_dir_fd(self):
1762 with self.prepare_file() as (dir_fd, name, fullname), \
1763 self.prepare() as (dir_fd2, name2, fullname2):
1764 posix.rename(name, name2,
1765 src_dir_fd=dir_fd, dst_dir_fd=dir_fd2)
1766 posix.stat(fullname2) # should not raise exception
1767 posix.rename(fullname2, fullname)
1768
1769 @unittest.skipUnless(os.symlink in os.supports_dir_fd, "test needs dir_fd support in os.symlink()")
1770 def test_symlink_dir_fd(self):

Callers

nothing calls this directly

Calls 4

prepare_fileMethod · 0.95
prepareMethod · 0.95
renameMethod · 0.45
statMethod · 0.45

Tested by

no test coverage detected