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

Method test_mkfifo_dir_fd

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

Source from the content-addressed store, hash-verified

1787
1788 @unittest.skipUnless(hasattr(os, 'mkfifo') and os.mkfifo in os.supports_dir_fd, "test needs dir_fd support in os.mkfifo()")
1789 def test_mkfifo_dir_fd(self):
1790 with self.prepare() as (dir_fd, name, fullname):
1791 try:
1792 posix.mkfifo(name, stat.S_IRUSR | stat.S_IWUSR, dir_fd=dir_fd)
1793 except PermissionError as e:
1794 self.skipTest('posix.mkfifo(): %s' % e)
1795 self.addCleanup(posix.unlink, fullname)
1796 self.assertTrue(stat.S_ISFIFO(posix.stat(fullname).st_mode))
1797
1798
1799class 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