mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +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
|
@ -11,7 +11,7 @@ from distutils.dir_util import (mkpath, remove_tree, create_tree, copy_tree,
|
|||
|
||||
from distutils import log
|
||||
from distutils.tests import support
|
||||
from test.support import run_unittest, is_emscripten
|
||||
from test.support import run_unittest, is_emscripten, is_wasi
|
||||
|
||||
|
||||
class DirUtilTestCase(support.TempdirManager, unittest.TestCase):
|
||||
|
@ -55,7 +55,10 @@ class DirUtilTestCase(support.TempdirManager, unittest.TestCase):
|
|||
|
||||
@unittest.skipIf(sys.platform.startswith('win'),
|
||||
"This test is only appropriate for POSIX-like systems.")
|
||||
@unittest.skipIf(is_emscripten, "Emscripten's umask is a stub.")
|
||||
@unittest.skipIf(
|
||||
is_emscripten or is_wasi,
|
||||
"Emscripten's/WASI's umask is a stub."
|
||||
)
|
||||
def test_mkpath_with_custom_mode(self):
|
||||
# Get and set the current umask value for testing mode bits.
|
||||
umask = os.umask(0o002)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue