gh-90473: Skip get_config_h() tests on WASI (GH-93645)

This commit is contained in:
Christian Heimes 2022-06-09 18:08:03 +02:00 committed by GitHub
parent 5a4af3ab03
commit 6099611af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -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)