summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-09 16:08:03 (GMT)
committerGitHub <noreply@github.com>2022-06-09 16:08:03 (GMT)
commit6099611af5b9688f015ae4796501ce101a1c2f32 (patch)
tree9f4cc9bd664d4ce514bc48c52fb64cd4ee755ec3 /Lib/test/test_sysconfig.py
parent5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360 (diff)
downloadcpython-6099611af5b9688f015ae4796501ce101a1c2f32.zip
cpython-6099611af5b9688f015ae4796501ce101a1c2f32.tar.gz
cpython-6099611af5b9688f015ae4796501ce101a1c2f32.tar.bz2
gh-90473: Skip get_config_h() tests on WASI (GH-93645)
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r--Lib/test/test_sysconfig.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index f2b9370..1679700 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -5,7 +5,9 @@ import subprocess
import shutil
from copy import copy
-from test.support import (captured_stdout, PythonSymlink, requires_subprocess)
+from test.support import (
+ captured_stdout, PythonSymlink, requires_subprocess, is_wasi
+)
from test.support.import_helper import import_module
from test.support.os_helper import (TESTFN, unlink, skip_unless_symlink,
change_cwd)
@@ -328,6 +330,7 @@ class TestSysConfig(unittest.TestCase):
# XXX more platforms to tests here
+ @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)
@@ -499,6 +502,7 @@ class MakefileTests(unittest.TestCase):
@unittest.skipIf(sys.platform.startswith('win'),
'Test is not Windows compatible')
+ @unittest.skipIf(is_wasi, "Incompatible with WASI mapdir and OOT builds")
def test_get_makefile_filename(self):
makefile = sysconfig.get_makefile_filename()
self.assertTrue(os.path.isfile(makefile), makefile)