From 6b0ede2960a4026e0a477353ef8fd836e059ef3f Mon Sep 17 00:00:00 2001 From: AronSwan <10492180@users.noreply.github.com> Date: Wed, 30 Sep 2026 22:50:00 +0800 Subject: [PATCH] fix(tests): keep the single-owner scheme-list sentinel green on Windows str(path.relative_to(REPOSITORY_ROOT)) renders repo-relative paths with backslash separators on Windows, so the sole legitimate owner never matches the asserted POSIX literal and the #5136 drift sentinel can never pass there. Render with as_posix() instead - an identity transform on POSIX, a separator normalisation on Windows. Refs #5136 Signed-off-by: AronSwan <10492180@users.noreply.github.com> --- tests/control_plane/test_remote_location_shape_owner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/control_plane/test_remote_location_shape_owner.py b/tests/control_plane/test_remote_location_shape_owner.py index 3a6d8e16ef..cc155e19f6 100644 --- a/tests/control_plane/test_remote_location_shape_owner.py +++ b/tests/control_plane/test_remote_location_shape_owner.py @@ -62,7 +62,7 @@ def _source_text_spelling_the_scheme_list() -> list[str]: offenders: list[str] = [] for path in sorted(PACKAGE_ROOT.rglob("*.py")): if SCHEME_LIST in path.read_text(encoding="utf-8"): - offenders.append(str(path.relative_to(REPOSITORY_ROOT))) + offenders.append(path.relative_to(REPOSITORY_ROOT).as_posix()) return offenders