make sure to test UnicodeEncodeError, too

This commit is contained in:
Benjamin Peterson 2014-04-02 15:51:38 -04:00
parent 9b09ba1234
commit e331121e1f
1 changed files with 1 additions and 1 deletions

View File

@ -802,7 +802,7 @@ class ExceptionTests(unittest.TestCase):
def test_unicode_errors_no_object(self): def test_unicode_errors_no_object(self):
# See issue #21134. # See issue #21134.
klasses = UnicodeDecodeError, UnicodeDecodeError, UnicodeTranslateError klasses = UnicodeEncodeError, UnicodeDecodeError, UnicodeTranslateError
for klass in klasses: for klass in klasses:
self.assertEqual(str(klass.__new__(klass)), "") self.assertEqual(str(klass.__new__(klass)), "")