Skip to content
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 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"),
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