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

Method test_mkdir

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

Source from the content-addressed store, hash-verified

2368 os.scandir(0)
2369
2370 def test_mkdir(self):
2371 self._verify_available("HAVE_MKDIRAT")
2372 if self.mac_ver >= (10, 10):
2373 self.assertIn("HAVE_MKDIRAT", posix._have_functions)
2374
2375 else:
2376 self.assertNotIn("HAVE_MKDIRAT", posix._have_functions)
2377
2378 with self.assertRaisesRegex(NotImplementedError, "dir_fd unavailable"):
2379 os.mkdir("dir", dir_fd=0)
2380
2381 def test_mkfifo(self):
2382 self._verify_available("HAVE_MKFIFOAT")

Callers

nothing calls this directly

Calls 5

_verify_availableMethod · 0.95
assertInMethod · 0.80
assertNotInMethod · 0.80
assertRaisesRegexMethod · 0.80
mkdirMethod · 0.45

Tested by

no test coverage detected