summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-02 19:51:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-02 19:51:38 (GMT)
commite331121e1f6e4f754f2d25c32e1b738df2f4404a (patch)
treeb3f99476f04ccd756ef152b5c336a3bb650f3dc3
parent9b09ba1234f8ba7a01eaf8986147ae0758712089 (diff)
downloadcpython-e331121e1f6e4f754f2d25c32e1b738df2f4404a.zip
cpython-e331121e1f6e4f754f2d25c32e1b738df2f4404a.tar.gz
cpython-e331121e1f6e4f754f2d25c32e1b738df2f4404a.tar.bz2
make sure to test UnicodeEncodeError, too
-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 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)), "")