From a26511f868d170bae24e7720b111b9f6c5240561 Mon Sep 17 00:00:00 2001 From: Alpamys Date: Wed, 13 May 2026 19:55:16 +0500 Subject: [PATCH] =?UTF-8?q?fix(test):=20v0.53.7=20=E2=80=94=20symlink=20te?= =?UTF-8?q?st=20accepts=20either=20rejection=20branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_load_jsonl_rows_rejects_symlink: when the symlink target is outside cwd, is_under_cwd's realpath resolution catches it before the lstat check fires. Both rejections are valid security guards; broaden the regex to match either error message ("symlink" or "under cwd"). Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/test_v0537.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_v0537.py b/tests/test_v0537.py index f67903b..bd4d106 100644 --- a/tests/test_v0537.py +++ b/tests/test_v0537.py @@ -1502,7 +1502,7 @@ class TestReviewFixesDataScore: link = tmp_path / "link.jsonl" _os.symlink(str(target_outside), str(link)) from soup_cli.utils.data_score import load_jsonl_rows - with pytest.raises(ValueError, match="symlink"): + with pytest.raises(ValueError, match="symlink|under cwd"): load_jsonl_rows("link.jsonl") finally: if target_outside.exists():