summaryrefslogtreecommitdiffstats
path: root/Lib/test/support/os_helper.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-90473: Fix more tests on platforms without umask (GH-95164)Christian Heimes2022-07-231-0/+5
|
* gh-90385: Add `pathlib.Path.walk()` method (GH-92517)Stanislav Zmiev2022-07-221-1/+1
| | | Automerge-Triggered-By: GH:brettcannon
* gh-94315: Check for DAC override capability (GH-94316)Christian Heimes2022-06-271-1/+43
| | | | | ``os.geteuid() == 0`` is not a reliable check whether the current user has the capability to bypass permission checks. Tests now probe for DAC override.
* gh-85308: Add argparse tests for reading non-ASCII arguments from file ↵Serhiy Storchaka2022-06-241-0/+5
| | | | (GH-94160)
* gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)Christian Heimes2022-06-061-0/+36
| | | WASI does not have the ``chmod(2)`` syscall yet.
* gh-90473: WASI requires proper open(2) flags (GH-93529)Christian Heimes2022-06-061-1/+4
|
* gh-90473: wasmtime does not support absolute symlinks (GH-93490)Christian Heimes2022-06-051-2/+6
|
* gh-90473: Increase stack size, disable obmalloc on WASI (GH-92732)Christian Heimes2022-05-131-1/+1
|
* bpo-40280: Block more non-working syscalls in Emscripten (GH-31757)Christian Heimes2022-03-081-2/+2
| | | | | | | | | - 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.
* bpo-40280: Address more test failures on Emscripten (GH-31050)Christian Heimes2022-02-051-1/+1
| | | Co-authored-by: Brett Cannon <brett@python.org>
* bpo-46426: Improve tests for the dir_fd argument (GH-30668)Serhiy Storchaka2022-01-211-0/+11
| | | | | | | Ensure that directory file descriptors refer to directories different from the current directory, and that src_dir_fd and dst_dir_fd refer to different directories. Add context manager open_dir_fd() in test.support.os_helper.
* bpo-45020: Add -X frozen_modules=[on|off] to explicitly control use of ↵Eric Snow2021-09-141-0/+4
| | | | | | | frozen modules. (gh-28320) Currently we freeze several modules into the runtime. For each of these modules it is essential to bootstrapping the runtime that they be frozen. Any other stdlib module that we later freeze into the runtime is not essential. We can just as well import from the .py file. This PR lets users explicitly choose which should be used, with the new "-X frozen_modules=[on|off]" CLI flag. The default is "off" for now. https://bugs.python.org/issue45020
* bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵Serhiy Storchaka2020-06-251-10/+11
| | | | characters. (GH-21035)
* bpo-40275: Add os_helper submodule in test.support (GH-20765)Hai Shi2020-06-101-0/+611