summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-25 13:57:26 (GMT)
committerGitHub <noreply@github.com>2022-05-25 13:57:26 (GMT)
commit1f134e96ba994bea3aaea533d4a558df3c5cc3c0 (patch)
treec3784124138da2484288227c68ca8be3e4c273bd /Lib/lib2to3
parent5e6e5b98a8b943a8e05feb9c0c982150565f4c10 (diff)
downloadcpython-1f134e96ba994bea3aaea533d4a558df3c5cc3c0.zip
cpython-1f134e96ba994bea3aaea533d4a558df3c5cc3c0.tar.gz
cpython-1f134e96ba994bea3aaea533d4a558df3c5cc3c0.tar.bz2
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
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r--Lib/lib2to3/tests/test_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/tests/test_parser.py b/Lib/lib2to3/tests/test_parser.py
index e2dddbe..8e7773b 100644
--- a/Lib/lib2to3/tests/test_parser.py
+++ b/Lib/lib2to3/tests/test_parser.py
@@ -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()