diff options
author | Guido van Rossum <guido@python.org> | 2007-08-29 14:04:40 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-29 14:04:40 (GMT) |
commit | 04c70ad9716b6059762fa0bb9e5ddd0e93694af3 (patch) | |
tree | 04e299b73d889135d51fc8ec4528276e4ece4ba0 /Lib | |
parent | 7d1df6c9b1a7e075c03c4790f47bc83e0104579f (diff) | |
download | cpython-04c70ad9716b6059762fa0bb9e5ddd0e93694af3.zip cpython-04c70ad9716b6059762fa0bb9e5ddd0e93694af3.tar.gz cpython-04c70ad9716b6059762fa0bb9e5ddd0e93694af3.tar.bz2 |
Fix the one failing test (can't decode twice).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_codecs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index cb78048..2d531d2 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -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): |