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

Method test_mkdir_dir_fd

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

Source from the content-addressed store, hash-verified

1712
1713 @unittest.skipUnless(os.mkdir in os.supports_dir_fd, "test needs dir_fd support in os.mkdir()")
1714 def test_mkdir_dir_fd(self):
1715 with self.prepare() as (dir_fd, name, fullname):
1716 posix.mkdir(name, dir_fd=dir_fd)
1717 self.addCleanup(posix.rmdir, fullname)
1718 posix.stat(fullname) # should not raise exception
1719
1720 @unittest.skipUnless(hasattr(os, 'mknod')
1721 and (os.mknod in os.supports_dir_fd)

Callers

nothing calls this directly

Calls 4

prepareMethod · 0.95
addCleanupMethod · 0.80
mkdirMethod · 0.45
statMethod · 0.45

Tested by

no test coverage detected