diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-11-19 04:48:44 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-19 04:48:44 +0000 |
commit | a82642f9dbdff5253f40d4acee0cbb27aaf34462 (patch) | |
tree | 39ae79f83900575d6dba600ebec8deb3917508eb /Lib/test/test_os.py | |
parent | 41f69f4cc7c977bd202545b8ada01b80a278d0e2 (diff) | |
download | cpython-git-a82642f9dbdff5253f40d4acee0cbb27aaf34462.tar.gz |
Issue #25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 1f7e49c637..e29b0d585c 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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) |