neek78 · GitHub

Bug report

Bug description:

In Lib/test/support/__init__.py, in_systemd_nspawn_sync_suppressed(), /var/systemd/container is checked for existence, and the FileNotFoundError is caught. However, on my FreeBSD install, /run is mode 700 and thus we get a PermissionError, and the ensuing exception causes test invocation to fail.

OS Version:

% uname -a
FreeBSD lappy-freebsd 15.0-RELEASE FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC arm64

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Read the original on github.com ↗