MCPcopy Create free account
hub / github.com/python/cpython / test_mkdir_dir_fd

Method test_mkdir_dir_fd

Lib/test/test_os/test_posix.py:1788–1792  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

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