From e331121e1f6e4f754f2d25c32e1b738df2f4404a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 2 Apr 2014 15:51:38 -0400 Subject: 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 61347de..28801bd 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)), "") -- cgit v0.12