From c4fdd7ad5b79ab6e49e6163d2f6118c1b4e7f36e Mon Sep 17 00:00:00 2001 From: indieindie7 Date: Sun, 1 Nov 2026 05:33:08 -0300 Subject: [PATCH] tests: skip the searxng settings migration tests on Windows (#6882) scripts/migrate_searxng_settings.py runs inside the searxng container entrypoint and preserves the settings file's owner and mode with os.fchmod/os.fchown, which do not exist on Windows, so every subprocess run of the script in this module fails with AttributeError before the behaviour under test is reached. Mark the module POSIX-only. Co-authored-by: Claude Fable 5.1 Co-authored-by: Alexandre Teixeira --- tests/test_searxng_settings_migration.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_searxng_settings_migration.py b/tests/test_searxng_settings_migration.py index 75cef7775..616cc1783 100644 --- a/tests/test_searxng_settings_migration.py +++ b/tests/test_searxng_settings_migration.py @@ -8,6 +8,13 @@ from pathlib import Path import pytest import yaml +# The migration runs inside the searxng container entrypoint and preserves the +# settings file's owner/mode with os.fchmod/os.fchown, which do not exist on +# Windows, so every subprocess run of the script fails there before it starts. +pytestmark = pytest.mark.skipif( + os.name == "nt", reason="POSIX-only: migrate_searxng_settings.py uses os.fchmod/os.fchown" +) + ROOT = Path(__file__).resolve().parent.parent MIGRATION = ROOT / "scripts" / "migrate_searxng_settings.py"