mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Fix the test; solution found by Christian Heimes. Thanks!
This commit is contained in:
parent
f5af466d3a
commit
acb470c05f
1 changed files with 2 additions and 2 deletions
|
@ -9,11 +9,11 @@ class PEP263Test(unittest.TestCase):
|
||||||
def test_pep263(self):
|
def test_pep263(self):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
"ðÉÔÏÎ".encode("utf-8"),
|
"ðÉÔÏÎ".encode("utf-8"),
|
||||||
'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
|
b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
"\ð".encode("utf-8"),
|
"\ð".encode("utf-8"),
|
||||||
'\\\xd0\x9f'
|
b'\\\xd0\x9f'
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue