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:
Joao Moura
2026-07-13 21:07:21 -07:00
parent dd0f536616
commit a97da60337

View File

@@ -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: