mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
make sure to test UnicodeEncodeError, too
This commit is contained in:
parent
9b09ba1234
commit
e331121e1f
1 changed files with 1 additions and 1 deletions
|
@ -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)), "")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue