mirror of https://github.com/python/cpython
342e654b8e
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. |
||
---|---|---|
.. | ||
_hypothesis_stubs | ||
interpreters | ||
__init__.py | ||
ast_helper.py | ||
asynchat.py | ||
asyncore.py | ||
bytecode_helper.py | ||
hashlib_helper.py | ||
hypothesis_helper.py | ||
import_helper.py | ||
logging_helper.py | ||
os_helper.py | ||
pty_helper.py | ||
refleak_helper.py | ||
script_helper.py | ||
smtpd.py | ||
socket_helper.py | ||
testcase.py | ||
threading_helper.py | ||
warnings_helper.py |