]> granicus.if.org Git - python/commitdiff
Enable a broken test and fix it.
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 11 Jan 2013 03:54:57 +0000 (05:54 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 11 Jan 2013 03:54:57 +0000 (05:54 +0200)
Lib/test/test_codecs.py

index 4c58b2df2b0081aa72377b4b82976a4bf7435177..acf9f64b6b932aaefeca315cd82933f44f1ce97c 100644 (file)
@@ -803,7 +803,7 @@ class UTF8SigTest(ReadTest):
 
 class EscapeDecodeTest(unittest.TestCase):
     def test_empty(self):
-        self.assertEqual(codecs.escape_decode(""), ("", 0))
+        self.assertEqual(codecs.escape_decode(""), (b"", 0))
 
 class RecodingTest(unittest.TestCase):
     def test_recoding(self):
@@ -1905,6 +1905,7 @@ def test_main():
         UTF16BETest,
         UTF8Test,
         UTF8SigTest,
+        EscapeDecodeTest,
         UTF7Test,
         UTF16ExTest,
         ReadBufferTest,