Commit 04c70ad9 authored by Guido van Rossum's avatar Guido van Rossum

Fix the one failing test (can't decode twice).

parent 7d1df6c9
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment