summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multibytecodec_support.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-30 21:58:21 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-30 21:58:21 (GMT)
commitd9f5292443eb3da4c56a877b7096ad001ee5d848 (patch)
treea96dd572038ce47df5a249e1f6168cef17348f00 /Lib/test/test_multibytecodec_support.py
parentd3c7e17a1619cfda88abb42494fc30029f2fa28c (diff)
downloadcpython-d9f5292443eb3da4c56a877b7096ad001ee5d848.zip
cpython-d9f5292443eb3da4c56a877b7096ad001ee5d848.tar.gz
cpython-d9f5292443eb3da4c56a877b7096ad001ee5d848.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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_multibytecodec_support.py b/Lib/test/test_multibytecodec_support.py
index 9452909..7d3159d 100644
--- a/Lib/test/test_multibytecodec_support.py
+++ b/Lib/test/test_multibytecodec_support.py
@@ -50,7 +50,9 @@ class TestBase:
func = self.encode
if expected:
result = func(source, scheme)[0]
- self.assertEqual(result, expected)
+ self.assertEqual(result, expected,
+ '%r.decode(%r)=%r != %r'
+ % (source, self.encoding, result, expected))
else:
self.assertRaises(UnicodeError, func, source, scheme)