You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trim to the test-suite guard; let the JSON layer own the config's encoding
- Drop the -X warn_default_encoding wrappers from the two script steps and
the pre-commit hook: the pytest step and scripts/test are the guard, the
scripts' own reads are pinned, and an interpreter flag every entry point
has to remember has no owner. The README script still fails closed.
- mcp install: json.loads(config_file.read_bytes()), so BOM'd UTF-8 and the
UTF-16 that PowerShell 5's `>` writes are detected by the stdlib rather than
by a codec choice here; a separate test covers both, and
test_other_servers_preserved goes back to stating one behaviour.
- tests/test_types.py: run the child with -X utf8 and decode strictly, since
its stdout is the assertion subject.
- AGENTS.md: the targeted-coverage snippet sets PYTHONWARNDEFAULTENCODING=1
like scripts/test, and the rule names encoding="locale" as the deliberate
escape hatch.
0 commit comments