summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-25 14:24:32 (GMT)
committerGitHub <noreply@github.com>2022-05-25 14:24:32 (GMT)
commit0fb70ce19197e97b6254ecd2c12f6e8c5b07ef5b (patch)
tree7a8c89eb2070243c1454749fdcb4cbbd77b973db /Lib/distutils
parent307dacd651356d7318d5330b98794560329cf5e2 (diff)
downloadcpython-0fb70ce19197e97b6254ecd2c12f6e8c5b07ef5b.zip
cpython-0fb70ce19197e97b6254ecd2c12f6e8c5b07ef5b.tar.gz
cpython-0fb70ce19197e97b6254ecd2c12f6e8c5b07ef5b.tar.bz2
gh-90473: Misc test fixes for WASI (GH-93218)
* ``sys.executable`` is not set * WASI does not support subprocess * ``pwd`` module is not available * WASI checks ``open`` syscall flags more strict, needs r, w, rw flag. * ``umask`` is not available * ``/dev/null`` may not be accessible (cherry picked from commit 1f134e96ba994bea3aaea533d4a558df3c5cc3c0) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_build.py b/Lib/distutils/tests/test_build.py
index 83a9e4f..71b5e16 100644
--- a/Lib/distutils/tests/test_build.py
+++ b/Lib/distutils/tests/test_build.py
@@ -12,6 +12,7 @@ class BuildTestCase(support.TempdirManager,
support.LoggingSilencer,
unittest.TestCase):
+ @unittest.skipUnless(sys.executable, "test requires sys.executable")
def test_finalize_options(self):
pkg_dir, dist = self.create_dist()
cmd = build(dist)