diff options
author | 2024-09-20 15:37:49 +0200 | |
---|---|---|
committer | 2024-09-23 11:07:47 +0200 | |
commit | 30a9a8dccdad64bbfcf840ebcf8825c8d13428a6 (patch) | |
tree | 76363c8cab265f2b9b1d2a29482ede9d6a1a10ca /.mailmap | |
parent | GH-113655: Lower the C recursion limit for HPPA, PPC64 and SPARC (#124264) (diff) | |
download | cpython-gentoo-3.13.0rc2_p2.tar.gz cpython-gentoo-3.13.0rc2_p2.tar.bz2 cpython-gentoo-3.13.0rc2_p2.zip |
gh-124213: Skip tests failing inside systemd-nspawn --suppress-sync=true (#124215)gentoo-3.13.0rc2_p2
Add a helper function that checks whether the test suite is running
inside a systemd-nspawn container, and skip the few tests failing
with `--suppress-sync=true` in that case. The tests are failing because
`--suppress-sync=true` stubs out `fsync()`, `fdatasync()` and `msync()`
calls, and therefore they always return success without checking for
invalid arguments.
Call `os.open(__file__, os.O_RDONLY | os.O_SYNC)` and check the errno to
detect whether `--suppress-sync=true` is actually used, and skip
the tests only in that scenario.
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions