(self)
| 1786 | |
| 1787 | @unittest.skipUnless(os.mkdir in os.supports_dir_fd, "test needs dir_fd support in os.mkdir()") |
| 1788 | def test_mkdir_dir_fd(self): |
| 1789 | with self.prepare() as (dir_fd, name, fullname): |
| 1790 | posix.mkdir(name, dir_fd=dir_fd) |
| 1791 | self.addCleanup(posix.rmdir, fullname) |
| 1792 | posix.stat(fullname) # should not raise exception |
| 1793 | |
| 1794 | @unittest.skipUnless(hasattr(os, 'mknod') |
| 1795 | and (os.mknod in os.supports_dir_fd) |
nothing calls this directly
no test coverage detected