mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix the one failing test (can't decode twice).
This commit is contained in:
parent
7d1df6c9b1
commit
04c70ad971
1 changed files with 2 additions and 1 deletions
|
@ -756,7 +756,8 @@ class PunycodeTest(unittest.TestCase):
|
|||
def test_decode(self):
|
||||
for uni, puny in punycode_testcases:
|
||||
self.assertEquals(uni, puny.decode("punycode"))
|
||||
self.assertEquals(uni, puny.decode("ascii").decode("punycode"))
|
||||
puny = puny.decode("ascii").encode("ascii")
|
||||
self.assertEquals(uni, puny.decode("punycode"))
|
||||
|
||||
class UnicodeInternalTest(unittest.TestCase):
|
||||
def test_bug1251300(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue