Read UTF-8 test fixtures with explicit encoding (#3245)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
ShuQingDollarVoyager 2026-08-14 18:08:55 +08:00 • committed by GitHub
commit 2378e560fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ else: # pragma: lax no cover
STORIES_DIR = Path(stories.__file__).parent
BASE_URL = "http://127.0.0.1:8000"
MANIFEST = tomllib.loads((STORIES_DIR / "manifest.toml").read_text())
MANIFEST = tomllib.loads((STORIES_DIR / "manifest.toml").read_text(encoding="utf-8"))
DEFAULTS: dict[str, Any] = MANIFEST["defaults"]
STORIES: dict[str, dict[str, Any]] = MANIFEST["story"]