From a97da603375b3edaa215d789dd46f411edfffcef Mon Sep 17 00:00:00 2001 From: Joao Moura Date: Mon, 13 Jul 2026 21:07:21 -0700 Subject: [PATCH] test: read pyproject with explicit UTF-8 in chromadb pin test Review feedback: read_text() defaults to the platform encoding, but TOML is always UTF-8. Co-Authored-By: Claude Fable 5 --- lib/crewai/tests/security/test_chromadb_pin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crewai/tests/security/test_chromadb_pin.py b/lib/crewai/tests/security/test_chromadb_pin.py index 55eb1b74d..64deac967 100644 --- a/lib/crewai/tests/security/test_chromadb_pin.py +++ b/lib/crewai/tests/security/test_chromadb_pin.py @@ -19,7 +19,7 @@ PYPROJECT_PATH = Path(__file__).parents[2] / "pyproject.toml" def _get_requirement(name: str) -> Requirement: - data = tomllib.loads(PYPROJECT_PATH.read_text()) + data = tomllib.loads(PYPROJECT_PATH.read_text(encoding="utf-8")) for spec in data["project"]["dependencies"]: requirement = Requirement(spec) if requirement.name == name: