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

Method test_mkfifo

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

Source from the content-addressed store, hash-verified

2379 os.mkdir("dir", dir_fd=0)
2380
2381 def test_mkfifo(self):
2382 self._verify_available("HAVE_MKFIFOAT")
2383 if self.mac_ver >= (13, 0):
2384 self.assertIn("HAVE_MKFIFOAT", posix._have_functions)
2385
2386 else:
2387 self.assertNotIn("HAVE_MKFIFOAT", posix._have_functions)
2388
2389 with self.assertRaisesRegex(NotImplementedError, "dir_fd unavailable"):
2390 os.mkfifo("path", dir_fd=0)
2391
2392 def test_mknod(self):
2393 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