summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-09 16:32:52 (GMT)
committerGitHub <noreply@github.com>2022-06-09 16:32:52 (GMT)
commit06340f6226cd4d0707d31eb349d26566b6a6e997 (patch)
tree24338f11907ea5064651c1fbdc4e461ee3b1dceb /Lib/distutils/tests
parent7bfeb8a6062e294fa2128fb6aaf333e34da62daa (diff)
downloadcpython-06340f6226cd4d0707d31eb349d26566b6a6e997.zip
cpython-06340f6226cd4d0707d31eb349d26566b6a6e997.tar.gz
cpython-06340f6226cd4d0707d31eb349d26566b6a6e997.tar.bz2
gh-90473: Skip get_config_h() tests on WASI (GH-93645)
(cherry picked from commit 6099611af5b9688f015ae4796501ce101a1c2f32) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/distutils/tests')
-rw-r--r--Lib/distutils/tests/test_sysconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py
index e7d435f..0664aca 100644
--- a/Lib/distutils/tests/test_sysconfig.py
+++ b/Lib/distutils/tests/test_sysconfig.py
@@ -10,7 +10,7 @@ import unittest
from distutils import sysconfig
from distutils.ccompiler import get_default_compiler
from distutils.tests import support
-from test.support import run_unittest, swap_item, requires_subprocess
+from test.support import run_unittest, swap_item, requires_subprocess, is_wasi
from test.support.os_helper import TESTFN
from test.support.warnings_helper import check_warnings
@@ -32,6 +32,7 @@ class SysconfigTestCase(support.EnvironGuard, unittest.TestCase):
elif os.path.isdir(TESTFN):
shutil.rmtree(TESTFN)
+ @unittest.skipIf(is_wasi, "Incompatible with WASI mapdir and OOT builds")
def test_get_config_h_filename(self):
config_h = sysconfig.get_config_h_filename()
self.assertTrue(os.path.isfile(config_h), config_h)