summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-20 02:37:29 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2015-11-20 02:37:29 (GMT)
commit5e02af4961ed6278cd8e9aa4a59902fa4b16c8cb (patch)
tree1d907d1738d50b41ce084eb44e4ef94fb87b5354 /Lib/test/test_os.py
parent13d9b86d467539fac30370e0c87ee34683fd9721 (diff)
parent97cabb9fa5bd257aceae724f4727fe54580c4e9f (diff)
downloadcpython-5e02af4961ed6278cd8e9aa4a59902fa4b16c8cb.zip
cpython-5e02af4961ed6278cd8e9aa4a59902fa4b16c8cb.tar.gz
cpython-5e02af4961ed6278cd8e9aa4a59902fa4b16c8cb.tar.bz2
Issue #25583: Merge makedirs fix from 3.5
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index e8a7c97..d6880e5 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1039,6 +1039,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)
+
def test_exist_ok_s_isgid_directory(self):
path = os.path.join(support.TESTFN, 'dir1')
S_ISGID = stat.S_ISGID