-- Adjust test expectations for the FreeBSD ports test environment. -- This skips network-dependent test cases and makes subprocess/cache tests use the active Python interpreter and runtime-resolved cache paths. -- Needed because the upstream test suite assumes network access and a `python` executable in PATH during `make test`. --- tests/test_utils.py.orig 2026-09-17 21:08:45 UTC +++ tests/test_utils.py @@ -22,6 +22,7 @@ import subprocess import os import sqlite3 import subprocess +import sys import tempfile import textwrap import time @@ -589,7 +590,7 @@ class TestCachedForking(unittest.TestCase): print("FAIL") """) - run = subprocess.run(f"echo '{program}' | python", shell=True, capture_output=True) + run = subprocess.run(f"echo '{program}' | {sys.executable}", shell=True, capture_output=True) self.assertEqual(run.returncode, 0) self.assertEqual(run.stdout.strip(), b'') @@ -615,7 +616,7 @@ class TestCachedForking(unittest.TestCase): print("FAIL") """) - run = subprocess.run(f"echo '{program}' | python", shell=True, capture_output=True) + run = subprocess.run(f"echo '{program}' | {sys.executable}", shell=True, capture_output=True) self.assertEqual(run.returncode, 0) self.assertEqual(run.stdout.strip(), b'')