Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-39337: encodings.normalize_encoding() now ignores non-ASCII characters #22219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 14, 2020
Prev Previous commit
Next Next commit
update test
update test
  • Loading branch information
shihai1991 authored Sep 12, 2020
commit 0fcafb883cd25b0f1511c88245e29617f33f48b5
6 changes: 3 additions & 3 deletions 6 Lib/test/test_source_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class MiscSourceEncodingTest(unittest.TestCase):

def test_pep263(self):
self.assertEqual(
"�����".encode("utf-8"),
"ðÉÔÏÎ".encode("utf-8"),
shihai1991 marked this conversation as resolved.
Show resolved Hide resolved
b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
"\ð".encode("utf-8"),
b'\\\xd0\x9f'
)

Expand Down Expand Up @@ -235,7 +235,7 @@ def test_bpo39337(self):
"""
import encodings

out = encodings.normalize_encoding("���-8")
out = encodings.normalize_encoding("кои-8")
self.assertEqual(out, '8')


Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.