Skip to content

test.support.in_systemd_nspawn_sync_suppressed() fails with permission error #148853

@neek78

Description

@neek78

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions