]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90473: Misc test fixes for WASI (GH-93218)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 May 2022 14:24:32 +0000 (07:24 -0700)
committerGitHub <noreply@github.com>
Wed, 25 May 2022 14:24:32 +0000 (07:24 -0700)
commit0fb70ce19197e97b6254ecd2c12f6e8c5b07ef5b
tree7a8c89eb2070243c1454749fdcb4cbbd77b973db
parent307dacd651356d7318d5330b98794560329cf5e2
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
(cherry picked from commit 1f134e96ba994bea3aaea533d4a558df3c5cc3c0)

Co-authored-by: Christian Heimes <christian@python.org>
Lib/distutils/tests/test_build.py
Lib/lib2to3/tests/test_parser.py
Lib/test/test_netrc.py
Lib/test/test_os.py
Lib/test/test_pathlib.py
Lib/test/test_tarfile.py
Lib/test/test_unicode_file.py
Tools/wasm/README.md