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

Method test_mkfifo_dir_fd

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

Source from the content-addressed store, hash-verified

1861
1862 @unittest.skipUnless(hasattr(os, 'mkfifo') and os.mkfifo in os.supports_dir_fd, "test needs dir_fd support in os.mkfifo()")
1863 def test_mkfifo_dir_fd(self):
1864 with self.prepare() as (dir_fd, name, fullname):
1865 try:
1866 posix.mkfifo(name, stat.S_IRUSR | stat.S_IWUSR, dir_fd=dir_fd)
1867 except PermissionError as e:
1868 self.skipTest('posix.mkfifo(): %s' % e)
1869 self.addCleanup(posix.unlink, fullname)
1870 self.assertTrue(stat.S_ISFIFO(posix.stat(fullname).st_mode))
1871
1872
1873class PosixGroupsTester(unittest.TestCase):

Callers

nothing calls this directly

Calls 5

prepareMethod · 0.95
skipTestMethod · 0.80
addCleanupMethod · 0.80
assertTrueMethod · 0.80
statMethod · 0.45

Tested by

no test coverage detected