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

Method test_mknod

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

Source from the content-addressed store, hash-verified

2390 os.mkfifo("path", dir_fd=0)
2391
2392 def test_mknod(self):
2393 self._verify_available("HAVE_MKNODAT")
2394 if self.mac_ver >= (13, 0):
2395 self.assertIn("HAVE_MKNODAT", posix._have_functions)
2396
2397 else:
2398 self.assertNotIn("HAVE_MKNODAT", posix._have_functions)
2399
2400 with self.assertRaisesRegex(NotImplementedError, "dir_fd unavailable"):
2401 os.mknod("path", dir_fd=0)
2402
2403 def test_rename_replace(self):
2404 self._verify_available("HAVE_RENAMEAT")

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected