diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-04-15 02:27:11 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-04-15 02:27:11 +0000 |
commit | cda80940ed444d01beed797dcd86c207f11104bc (patch) | |
tree | 7beaa1c4db9c2e8351a9cf8ddda6a656900d4275 /Lib/test/test_multibytecodec.py | |
parent | 8ca020e1cc2590472ba83611727ae20d9f34bfe5 (diff) | |
parent | 20d325574eaa4f2a88036eac81e8d3cf9135372f (diff) | |
download | cpython-git-cda80940ed444d01beed797dcd86c207f11104bc.tar.gz |
Issue #15984: Merge PyUnicode doc from 3.5
Diffstat (limited to 'Lib/test/test_multibytecodec.py')
-rw-r--r-- | Lib/test/test_multibytecodec.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py index 2929f988a8..8d7a213c16 100644 --- a/Lib/test/test_multibytecodec.py +++ b/Lib/test/test_multibytecodec.py @@ -67,7 +67,7 @@ class Test_MultibyteCodec(unittest.TestCase): _multibytecodec.MultibyteStreamWriter, None) def test_decode_unicode(self): - # Trying to decode an unicode string should raise a TypeError + # Trying to decode a unicode string should raise a TypeError for enc in ALL_CJKENCODINGS: self.assertRaises(TypeError, codecs.getdecoder(enc), "") @@ -160,7 +160,7 @@ class Test_IncrementalDecoder(unittest.TestCase): self.assertEqual(decoder.decode(b'B@$'), '\u4e16') def test_decode_unicode(self): - # Trying to decode an unicode string should raise a TypeError + # Trying to decode a unicode string should raise a TypeError for enc in ALL_CJKENCODINGS: decoder = codecs.getincrementaldecoder(enc)() self.assertRaises(TypeError, decoder.decode, "") |