diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-30 22:01:24 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-30 22:01:24 (GMT) |
commit | ee49797c8dacb886d58804e59f6431ea6f842be2 (patch) | |
tree | 4b8248636dc93c421133465fed3d7223a8eb54e5 /Lib/test/test_multibytecodec_support.py | |
parent | 19c5233303f2a5b2da3d7f7da6887daf46c13443 (diff) | |
download | cpython-ee49797c8dacb886d58804e59f6431ea6f842be2.zip cpython-ee49797c8dacb886d58804e59f6431ea6f842be2.tar.gz cpython-ee49797c8dacb886d58804e59f6431ea6f842be2.tar.bz2 |
Issue #12057: Add tests for ISO 2022 codecs
iso2022_jp, iso2022_jp_2 and iso2022_kr
Diffstat (limited to 'Lib/test/test_multibytecodec_support.py')
-rw-r--r-- | Lib/test/test_multibytecodec_support.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_multibytecodec_support.py b/Lib/test/test_multibytecodec_support.py index a48fbe4..7735976 100644 --- a/Lib/test/test_multibytecodec_support.py +++ b/Lib/test/test_multibytecodec_support.py @@ -60,7 +60,9 @@ class TestBase: self.assertTrue(type(result) is str, type(result)) else: self.assertTrue(type(result) is bytes, type(result)) - self.assertEqual(result, expected) + self.assertEqual(result, expected, + '%a.decode(%r)=%a != %a' + % (source, self.encoding, result, expected)) else: self.assertRaises(UnicodeError, func, source, scheme) |