mirror of https://github.com/python/cpython
make sure to test UnicodeEncodeError, too
This commit is contained in:
parent
9b09ba1234
commit
e331121e1f
|
@ -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)), "")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue