mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-90473: Skip get_config_h() tests on WASI (GH-93645)
(cherry picked from commit 6099611af5
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
7bfeb8a606
commit
06340f6226
2 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue