MCPcopy Index your code
hub / github.com/python/cpython / test_mkdir_exist_ok_root

Method test_mkdir_exist_ok_root

Lib/test/test_pathlib/test_pathlib.py:2425–2428  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2423 self.assertEqual(p.stat().st_ctime, st_ctime_first)
2424
2425 def test_mkdir_exist_ok_root(self):
2426 # Issue #25803: A drive root could raise PermissionError on Windows.
2427 self.cls('/').resolve().mkdir(exist_ok=True)
2428 self.cls('/').resolve().mkdir(parents=True, exist_ok=True)
2429
2430 @needs_windows # XXX: not sure how to test this on POSIX.
2431 def test_mkdir_with_unknown_drive(self):

Callers

nothing calls this directly

Calls 3

mkdirMethod · 0.45
resolveMethod · 0.45
clsMethod · 0.45

Tested by

no test coverage detected