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

This commit is contained in:
Guido van Rossum 2007-08-29 14:04:40 +00:00
parent 7d1df6c9b1
commit 04c70ad971

View file

@ -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):