mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)
This commit is contained in:
parent
41f69f4cc7
commit
a82642f9db
3 changed files with 11 additions and 3 deletions
|
@ -971,6 +971,9 @@ class MakedirTests(unittest.TestCase):
|
|||
os.makedirs(path, mode=mode, exist_ok=True)
|
||||
os.umask(old_mask)
|
||||
|
||||
# Issue #25583: A drive root could raise PermissionError on Windows
|
||||
os.makedirs(os.path.abspath('/'), exist_ok=True)
|
||||
|
||||
@unittest.skipUnless(hasattr(os, 'chown'), 'test needs os.chown')
|
||||
def test_chown_uid_gid_arguments_must_be_index(self):
|
||||
stat = os.stat(support.TESTFN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue