summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-02 15:51:38 -0400
committerBenjamin Peterson <benjamin@python.org>2014-04-02 15:51:38 -0400
commite331121e1f6e4f754f2d25c32e1b738df2f4404a (patch)
treeb3f99476f04ccd756ef152b5c336a3bb650f3dc3 /Lib/test/test_exceptions.py
parent9b09ba1234f8ba7a01eaf8986147ae0758712089 (diff)
downloadcpython-git-e331121e1f6e4f754f2d25c32e1b738df2f4404a.tar.gz
make sure to test UnicodeEncodeError, too
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 61347de11e..28801bd859 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)), "")