diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 61347de11e7..28801bd859b 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)), "")