Commit e331121e authored by Benjamin Peterson's avatar Benjamin Peterson

make sure to test UnicodeEncodeError, too

parent 9b09ba12
......@@ -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)), "")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment