From 07681001c91a89cf108fd01d9cc343b4324feded Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 2 Apr 2014 15:51:38 -0400 Subject: [PATCH] make sure to test UnicodeEncodeError, too --- Lib/test/test_exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)), "") -- 2.50.1