(self)
| 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): |
nothing calls this directly
no test coverage detected