|
5 | 5 | import shutil |
6 | 6 | from copy import copy |
7 | 7 |
|
8 | | -from test.support import (captured_stdout, PythonSymlink, requires_subprocess) |
| 8 | +from test.support import ( |
| 9 | + captured_stdout, PythonSymlink, requires_subprocess, is_wasi |
| 10 | +) |
9 | 11 | from test.support.import_helper import import_module |
10 | 12 | from test.support.os_helper import (TESTFN, unlink, skip_unless_symlink, |
11 | 13 | change_cwd) |
@@ -328,6 +330,7 @@ def test_get_platform(self): |
328 | 330 |
|
329 | 331 | # XXX more platforms to tests here |
330 | 332 |
|
| 333 | + @unittest.skipIf(is_wasi, "Incompatible with WASI mapdir and OOT builds") |
331 | 334 | def test_get_config_h_filename(self): |
332 | 335 | config_h = sysconfig.get_config_h_filename() |
333 | 336 | self.assertTrue(os.path.isfile(config_h), config_h) |
@@ -499,6 +502,7 @@ class MakefileTests(unittest.TestCase): |
499 | 502 |
|
500 | 503 | @unittest.skipIf(sys.platform.startswith('win'), |
501 | 504 | 'Test is not Windows compatible') |
| 505 | + @unittest.skipIf(is_wasi, "Incompatible with WASI mapdir and OOT builds") |
502 | 506 | def test_get_makefile_filename(self): |
503 | 507 | makefile = sysconfig.get_makefile_filename() |
504 | 508 | self.assertTrue(os.path.isfile(makefile), makefile) |
|
0 commit comments