]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-128520: pathlib ABCs tests: use explicit text encoding (#133105)
authorBarney Gale <barney.gale@gmail.com>
Mon, 28 Apr 2025 19:18:56 +0000 (20:18 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Apr 2025 19:18:56 +0000 (20:18 +0100)
commit336322b34137d90b0db19545c09a77f050ba8de0
tree47c8efaea297dbe6e94f416b6490fbcfe9189fa8
parent606003ffa9e400cc22cc3b11f31118e2e24f688e
GH-128520: pathlib ABCs tests: use explicit text encoding (#133105)

Follow-up to fbffd70. Set `encoding='utf-8'` when reading and writing text
in the tests for the private pathlib ABCs, which allows the tests to run
with `-W error -X warn_default_encoding`
Lib/test/test_pathlib/support/local_path.py
Lib/test/test_pathlib/support/zip_path.py
Lib/test/test_pathlib/test_read.py
Lib/test/test_pathlib/test_write.py