mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-24 16:25:09 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user