mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-90473: Misc test fixes for WASI (GH-93218)
* ``sys.executable`` is not set * WASI does not support subprocess * ``pwd`` module is not available * WASI checks ``open`` syscall flags more strict, needs r, w, rw flag. * ``umask`` is not available * ``/dev/null`` may not be accessible
This commit is contained in:
parent
5e6e5b98a8
commit
1f134e96ba
8 changed files with 26 additions and 7 deletions
|
@ -63,7 +63,7 @@ class TestPgen2Caching(support.TestCase):
|
|||
|
||||
@unittest.skipIf(sys.executable is None, 'sys.executable required')
|
||||
@unittest.skipIf(
|
||||
sys.platform == 'emscripten', 'requires working subprocess'
|
||||
sys.platform in {'emscripten', 'wasi'}, 'requires working subprocess'
|
||||
)
|
||||
def test_load_grammar_from_subprocess(self):
|
||||
tmpdir = tempfile.mkdtemp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue