From: Benjamin Peterson Date: Wed, 2 Apr 2014 19:51:38 +0000 (-0400) Subject: make sure to test UnicodeEncodeError, too X-Git-Tag: v2.7.7rc1~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07681001c91a89cf108fd01d9cc343b4324feded;p=python make sure to test UnicodeEncodeError, too --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 7f55aabdc3..dc02cb375e 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -433,7 +433,7 @@ class ExceptionTests(unittest.TestCase): def test_unicode_errors_no_object(self): # See issue #21134. - klasses = UnicodeDecodeError, UnicodeDecodeError, UnicodeTranslateError + klasses = UnicodeEncodeError, UnicodeDecodeError, UnicodeTranslateError for klass in klasses: self.assertEqual(str(klass.__new__(klass)), "")