From 4877828264b7d883b589f513a9680812daa38f9c Mon Sep 17 00:00:00 2001 From: Rip&Tear <84775494+theCyberTech@users.noreply.github.com> Date: Sat, 20 Jun 2026 11:11:24 +0800 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- lib/crewai-tools/tests/utilities/test_safe_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crewai-tools/tests/utilities/test_safe_path.py b/lib/crewai-tools/tests/utilities/test_safe_path.py index 3856cb187..81363390b 100644 --- a/lib/crewai-tools/tests/utilities/test_safe_path.py +++ b/lib/crewai-tools/tests/utilities/test_safe_path.py @@ -50,7 +50,7 @@ class TestValidateFilePath: """Reject symlinks that point outside base_dir.""" link = tmp_path / "sneaky_link" os.symlink("/etc/passwd", str(link)) - with pytest.raises(ValueError, match="outside the allowed director"): + with pytest.raises(ValueError, match="outside the allowed directories"): validate_file_path("sneaky_link", str(tmp_path)) def test_defaults_to_cwd(self):