mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-90473: Fix more tests on platforms without umask (GH-95164)
(cherry picked from commit 6839324894
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
62bc052c1e
commit
0d688bd2b6
3 changed files with 18 additions and 2 deletions
|
@ -1607,6 +1607,10 @@ class MakedirTests(unittest.TestCase):
|
|||
self.assertEqual(os.stat(path).st_mode & 0o777, 0o555)
|
||||
self.assertEqual(os.stat(parent).st_mode & 0o777, 0o775)
|
||||
|
||||
@unittest.skipIf(
|
||||
support.is_emscripten or support.is_wasi,
|
||||
"Emscripten's/WASI's umask is a stub."
|
||||
)
|
||||
def test_exist_ok_existing_directory(self):
|
||||
path = os.path.join(os_helper.TESTFN, 'dir1')
|
||||
mode = 0o777
|
||||
|
@ -1621,6 +1625,10 @@ class MakedirTests(unittest.TestCase):
|
|||
# Issue #25583: A drive root could raise PermissionError on Windows
|
||||
os.makedirs(os.path.abspath('/'), exist_ok=True)
|
||||
|
||||
@unittest.skipIf(
|
||||
support.is_emscripten or support.is_wasi,
|
||||
"Emscripten's/WASI's umask is a stub."
|
||||
)
|
||||
def test_exist_ok_s_isgid_directory(self):
|
||||
path = os.path.join(os_helper.TESTFN, 'dir1')
|
||||
S_ISGID = stat.S_ISGID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue