summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-23 10:51:29 (GMT)
committerGitHub <noreply@github.com>2022-07-23 10:51:29 (GMT)
commit0d688bd2b6f572afb9783c3520345c9accc0ca6c (patch)
tree7f213ca9e2fba270d1b45a8e8f6730961844742e /Lib/distutils/tests
parent62bc052c1eebce3f6e68e7a18ea3cf4bc05e1527 (diff)
downloadcpython-0d688bd2b6f572afb9783c3520345c9accc0ca6c.zip
cpython-0d688bd2b6f572afb9783c3520345c9accc0ca6c.tar.gz
cpython-0d688bd2b6f572afb9783c3520345c9accc0ca6c.tar.bz2
gh-90473: Fix more tests on platforms without umask (GH-95164)
(cherry picked from commit 68393248947adaa61962cd44e9d49c44017ba94f) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/distutils/tests')
-rw-r--r--Lib/distutils/tests/test_dir_util.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_dir_util.py b/Lib/distutils/tests/test_dir_util.py
index f3ba0ee..ebd89f3 100644
--- a/Lib/distutils/tests/test_dir_util.py
+++ b/Lib/distutils/tests/test_dir_util.py
@@ -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)