From bdb763bfde1ea3a906034a7e94be951ea81280bf Mon Sep 17 00:00:00 2001 From: Rip&Tear <84775494+theCyberTech@users.noreply.github.com> Date: Sat, 20 Jun 2026 11:11:54 +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 1a51c9db3..ae88fa181 100644 --- a/lib/crewai-tools/tests/utilities/test_safe_path.py +++ b/lib/crewai-tools/tests/utilities/test_safe_path.py @@ -228,7 +228,7 @@ class TestAllowList: extra.mkdir() (extra / "data.txt").touch() monkeypatch.delenv("CREWAI_TOOLS_ALLOWED_DIRS", raising=False) - with pytest.raises(ValueError, match="outside the allowed director"): + with pytest.raises(ValueError, match="outside the allowed directories"): validate_file_path(str(extra / "data.txt"), base_dir=str(base)) def test_multiple_env_roots(self, tmp_path, monkeypatch):