From 7c54d66682499f6a35cf2bd32f20ca66282555c2 Mon Sep 17 00:00:00 2001 From: Nick Begg Date: Tue, 21 Apr 2026 01:01:08 +0200 Subject: [PATCH 1/2] /run/ on my FreeBSD imstall is not readable - Fix failing test due to this. --- Lib/test/support/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 2cac70f4ab2afb..2200d7e05104d0 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -3164,7 +3164,7 @@ def in_systemd_nspawn_sync_suppressed() -> bool: with open("/run/systemd/container", "rb") as fp: if fp.read().rstrip() != b"systemd-nspawn": return False - except FileNotFoundError: + except (FileNotFoundError, PermissionError): return False # If systemd-nspawn is used, O_SYNC flag will immediately From a6e1e9b0231198b3a2f272d43a07c8681a946a16 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 09:15:15 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2026-04-22-09-15-13.gh-issue-148853:.bP3jhQ.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2026-04-22-09-15-13.gh-issue-148853:.bP3jhQ.rst diff --git a/Misc/NEWS.d/next/Tests/2026-04-22-09-15-13.gh-issue-148853:.bP3jhQ.rst b/Misc/NEWS.d/next/Tests/2026-04-22-09-15-13.gh-issue-148853:.bP3jhQ.rst new file mode 100644 index 00000000000000..02392adf883e82 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2026-04-22-09-15-13.gh-issue-148853:.bP3jhQ.rst @@ -0,0 +1 @@ +Tests failing on FreeBSD due to unreadable /run fixes