summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-03-17 11:09:57 (GMT)
committerGitHub <noreply@github.com>2022-03-17 11:09:57 (GMT)
commitef1327e3b622e0cafdf8bfc1f480fed0dd386be6 (patch)
tree30a0e34b5a38b7dd997e5223880618a9b3e5acbd /Lib/distutils
parentc2e3c06139e9468efb32629d147d99a1672d9e19 (diff)
downloadcpython-ef1327e3b622e0cafdf8bfc1f480fed0dd386be6.zip
cpython-ef1327e3b622e0cafdf8bfc1f480fed0dd386be6.tar.gz
cpython-ef1327e3b622e0cafdf8bfc1f480fed0dd386be6.tar.bz2
bpo-40280: Skip more tests on Emscripten (GH-31947)
- lchmod, lchown are not fully implemented - skip umask tests - cannot fstat unlinked or renamed files yet - ignore musl libc issues that affect Emscripten
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_dir_util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_dir_util.py b/Lib/distutils/tests/test_dir_util.py
index 1b1f3bb..f3ba0ee 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
+from test.support import run_unittest, is_emscripten
class DirUtilTestCase(support.TempdirManager, unittest.TestCase):
@@ -55,6 +55,7 @@ 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.")
def test_mkpath_with_custom_mode(self):
# Get and set the current umask value for testing mode bits.
umask = os.umask(0o002)