Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e331121

Browse files
committed
make sure to test UnicodeEncodeError, too
1 parent 9b09ba1 commit e331121

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def test_unicode_change_attributes(self):
802802

803803
def test_unicode_errors_no_object(self):
804804
# See issue #21134.
805-
klasses = UnicodeDecodeError, UnicodeDecodeError, UnicodeTranslateError
805+
klasses = UnicodeEncodeError, UnicodeDecodeError, UnicodeTranslateError
806806
for klass in klasses:
807807
self.assertEqual(str(klass.__new__(klass)), "")
808808

0 commit comments

Comments
 (0)