Commit 07681001 authored by Benjamin Peterson's avatar Benjamin Peterson

make sure to test UnicodeEncodeError, too

parent c4e6e0a2
......@@ -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)), "")
......
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