From: Benjamin Peterson Date: Wed, 2 Apr 2014 19:51:38 +0000 (-0400) Subject: make sure to test UnicodeEncodeError, too X-Git-Tag: v3.4.1rc1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e331121e1f6e4f754f2d25c32e1b738df2f4404a;p=python make sure to test UnicodeEncodeError, too --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 61347de11e..28801bd859 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -802,7 +802,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)), "")