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

Method test_mknod

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

Source from the content-addressed store, hash-verified

2480 os.mkfifo("path", dir_fd=0)
2481
2482 def test_mknod(self):
2483 self._verify_available("HAVE_MKNODAT")
2484 if self.mac_ver >= (13, 0):
2485 self.assertIn("HAVE_MKNODAT", posix._have_functions)
2486
2487 else:
2488 self.assertNotIn("HAVE_MKNODAT", posix._have_functions)
2489
2490 with self.assertRaisesRegex(NotImplementedError, "dir_fd unavailable"):
2491 os.mknod("path", dir_fd=0)
2492
2493 def test_rename_replace(self):
2494 self._verify_available("HAVE_RENAMEAT")

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