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

Method test_mkfifo

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

Source from the content-addressed store, hash-verified

2469 os.mkdir("dir", dir_fd=0)
2470
2471 def test_mkfifo(self):
2472 self._verify_available("HAVE_MKFIFOAT")
2473 if self.mac_ver >= (13, 0):
2474 self.assertIn("HAVE_MKFIFOAT", posix._have_functions)
2475
2476 else:
2477 self.assertNotIn("HAVE_MKFIFOAT", posix._have_functions)
2478
2479 with self.assertRaisesRegex(NotImplementedError, "dir_fd unavailable"):
2480 os.mkfifo("path", dir_fd=0)
2481
2482 def test_mknod(self):
2483 self._verify_available("HAVE_MKNODAT")

Callers

nothing calls this directly

Calls 4

_verify_availableMethod · 0.95
assertInMethod · 0.80
assertNotInMethod · 0.80
assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected