cpython/Lib/test/support
Michał Górny 342e654b8e
gh-124213: Skip tests failing inside systemd-nspawn --suppress-sync=true (#124215)
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.
2024-09-20 13:37:49 +00:00
..
_hypothesis_stubs
interpreters gh-76785: Expand How Interpreter Channels Handle Interpreter Finalization (gh-121805) 2024-07-15 19:43:59 +00:00
__init__.py gh-124213: Skip tests failing inside systemd-nspawn --suppress-sync=true (#124215) 2024-09-20 13:37:49 +00:00
ast_helper.py
asynchat.py Fix typos in comments and test code (#122846) 2024-08-11 21:16:41 -07:00
asyncore.py Fix typos in comments and test code (#122846) 2024-08-11 21:16:41 -07:00
bytecode_helper.py Fix typos in comments and test code (#122846) 2024-08-11 21:16:41 -07:00
hashlib_helper.py
hypothesis_helper.py CI: set correct working directory for Hypothesis cache (GH-119345) 2024-05-29 14:13:18 +02:00
import_helper.py
logging_helper.py
os_helper.py gh-118201: Accomodate flaky behavior of os.sysconf on iOS (GH-118453) 2024-04-30 22:31:00 -04:00
pty_helper.py
refleak_helper.py
script_helper.py Move get_signal_name() to test.support (#121251) 2024-07-02 10:34:13 +02:00
smtpd.py gh-121275: Fix test_logging and test_smtplib with Python build withoud IPv6 support (#121276) 2024-07-25 17:33:39 +05:30
socket_helper.py
testcase.py gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) 2024-09-08 16:01:54 +03:00
threading_helper.py
warnings_helper.py