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 | 07681001c91a89cf108fd01d9cc343b4324feded (patch) | |
tree | 21f24717d739a67f0feb914b9fff6d8214fca3bd /Lib/test/test_exceptions.py | |
parent | c4e6e0a27944893103f78090eb7d026be0f3707d (diff) | |
download | cpython-07681001c91a89cf108fd01d9cc343b4324feded.zip cpython-07681001c91a89cf108fd01d9cc343b4324feded.tar.gz cpython-07681001c91a89cf108fd01d9cc343b4324feded.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 7f55aab..dc02cb3 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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)), "") |