Original file line numberDiff line numberDiff line change@@ -10,7 +10,7 @@
1010fromdistutilsimportsysconfig
1111fromdistutils.ccompilerimportget_default_compiler
1212fromdistutils.testsimportsupport
13-fromtest.supportimportrun_unittest, swap_item, requires_subprocess
13+fromtest.supportimportrun_unittest, swap_item, requires_subprocess, is_wasi
1414fromtest.support.os_helperimportTESTFN
1515fromtest.support.warnings_helperimportcheck_warnings
1616@@ -32,6 +32,7 @@ def cleanup_testfn(self):
3232elifos.path.isdir(TESTFN):
3333shutil.rmtree(TESTFN)
[email protected](is_wasi, "Incompatible with WASI mapdir and OOT builds")
3536deftest_get_config_h_filename(self):
3637config_h=sysconfig.get_config_h_filename()
3738self.assertTrue(os.path.isfile(config_h), config_h)
Original file line numberDiff line numberDiff line change@@ -5,7 +5,9 @@
55importshutil
66fromcopyimportcopy
778-fromtest.supportimport (captured_stdout, PythonSymlink, requires_subprocess)
8+fromtest.supportimport (
9+captured_stdout, PythonSymlink, requires_subprocess, is_wasi
10+)
911fromtest.support.import_helperimportimport_module
1012fromtest.support.os_helperimport (TESTFN, unlink, skip_unless_symlink,
1113change_cwd)
@@ -328,6 +330,7 @@ def test_get_platform(self):
328330329331# XXX more platforms to tests here
[email protected](is_wasi, "Incompatible with WASI mapdir and OOT builds")
331334deftest_get_config_h_filename(self):
332335config_h=sysconfig.get_config_h_filename()
333336self.assertTrue(os.path.isfile(config_h), config_h)
@@ -499,6 +502,7 @@ class MakefileTests(unittest.TestCase):
[email protected](sys.platform.startswith('win'),
501504'Test is not Windows compatible')
[email protected](is_wasi, "Incompatible with WASI mapdir and OOT builds")
502506deftest_get_makefile_filename(self):
503507makefile=sysconfig.get_makefile_filename()
504508self.assertTrue(os.path.isfile(makefile), makefile)