]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40280: Block more non-working syscalls in Emscripten (GH-31757)
authorChristian Heimes <christian@python.org>
Tue, 8 Mar 2022 11:17:30 +0000 (13:17 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Mar 2022 11:17:30 +0000 (12:17 +0100)
commit5081e78efde901556398615eb477c63c836686e5
tree5be2667672a5d7a1df2b32b5a215546d1b5a5507
parent36dd7396fcd26d8bf9919d536d05d7000becbe5b
bpo-40280: Block more non-working syscalls in Emscripten (GH-31757)

- getgroups always fails.
- geteuid and getegid always return 0 (root), which confuse tarfile and
  tests.
- hardlinks (link, linkat) always fails.
- non-encodable file names are not supported by NODERAWFS layer.
- mark more tests with dependency on subprocess and multiprocessing.
  Mocking does not work if the module fails to import.
Lib/distutils/tests/test_file_util.py
Lib/test/support/os_helper.py
Lib/test/test_compileall.py
Lib/test/test_genericpath.py
Lib/test/test_os.py
Lib/test/test_posix.py
Lib/test/test_script_helper.py
Tools/wasm/config.site-wasm32-emscripten