diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-04-02 19:51:38 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-04-02 19:51:38 (GMT) |
commit | e331121e1f6e4f754f2d25c32e1b738df2f4404a (patch) | |
tree | b3f99476f04ccd756ef152b5c336a3bb650f3dc3 /Lib/test/test_exceptions.py | |
parent | 9b09ba1234f8ba7a01eaf8986147ae0758712089 (diff) | |
download | cpython-e331121e1f6e4f754f2d25c32e1b738df2f4404a.zip cpython-e331121e1f6e4f754f2d25c32e1b738df2f4404a.tar.gz cpython-e331121e1f6e4f754f2d25c32e1b738df2f4404a.tar.bz2 |
make sure to test UnicodeEncodeError, too
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 61347de..28801bd 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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)), "") |