mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +08:00
Fix the test; solution found by Christian Heimes. Thanks!
This commit is contained in:
parent
f5af466d3a
commit
acb470c05f
@ -9,11 +9,11 @@ class PEP263Test(unittest.TestCase):
|
||||
def test_pep263(self):
|
||||
self.assertEqual(
|
||||
"ðÉÔÏÎ".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(
|
||||
"\ð".encode("utf-8"),
|
||||
'\\\xd0\x9f'
|
||||
b'\\\xd0\x9f'
|
||||
)
|
||||
|
||||
def test_main():
|
||||
|
Loading…
Reference in New Issue
Block a user