diff options
author | Christian Heimes <christian@python.org> | 2022-05-25 13:57:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 13:57:26 (GMT) |
commit | 1f134e96ba994bea3aaea533d4a558df3c5cc3c0 (patch) | |
tree | c3784124138da2484288227c68ca8be3e4c273bd /Tools/wasm | |
parent | 5e6e5b98a8b943a8e05feb9c0c982150565f4c10 (diff) | |
download | cpython-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 'Tools/wasm')
-rw-r--r-- | Tools/wasm/README.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/wasm/README.md b/Tools/wasm/README.md index 9e253bc..239eb90 100644 --- a/Tools/wasm/README.md +++ b/Tools/wasm/README.md @@ -239,7 +239,11 @@ are: yet. A future version of WASI may provide a limited ``set_permissions`` API. - File locking (``fcntl``) is not available. - ``os.pipe()``, ``os.mkfifo()``, and ``os.mknod()`` are not supported. -- ``process_time`` clock does not work. +- ``process_time`` does not work as expected because it's implemented using + wall clock. +- ``os.umask`` is a stub. +- ``sys.executable`` is empty. +- ``/dev/null`` / ``os.devnull`` may not be available. # Detect WebAssembly builds |