]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46659: Update the test on the mbcs codec alias (GH-31168)
authorVictor Stinner <vstinner@python.org>
Sun, 6 Feb 2022 20:50:09 +0000 (21:50 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Feb 2022 20:50:09 +0000 (21:50 +0100)
commit04dd60e50cd3da48fd19cdab4c0e4cc600d6af30
tree81f316a4d68d61647d0bc91ba6e44759996e247a
parent3da5526136034188185d6a3fdba71e2b56577ee2
bpo-46659: Update the test on the mbcs codec alias (GH-31168)

encodings registers the _alias_mbcs() codec search function before
the search_function() codec search function. Previously, the
_alias_mbcs() was never used.

Fix the test_codecs.test_mbcs_alias() test: use the current ANSI code
page, not a fake ANSI code page number.

Remove the test_site.test_aliasing_mbcs() test: the alias is now
implemented in the encodings module, no longer in the site module.
Lib/encodings/__init__.py
Lib/test/test_codecs.py
Lib/test/test_site.py