Skip to content

Commit 7c54d66

Browse files
committed
/run/ on my FreeBSD imstall is not readable - Fix failing test due to this.
1 parent db3e990 commit 7c54d66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3164,7 +3164,7 @@ def in_systemd_nspawn_sync_suppressed() -> bool:
31643164
with open("/run/systemd/container", "rb") as fp:
31653165
if fp.read().rstrip() != b"systemd-nspawn":
31663166
return False
3167-
except FileNotFoundError:
3167+
except (FileNotFoundError, PermissionError):
31683168
return False
31693169

31703170
# If systemd-nspawn is used, O_SYNC flag will immediately

0 commit comments

Comments
 (0)