[Python-checkins] cpython (3.4): make sure to test UnicodeEncodeError, too

benjamin.peterson python-checkins at python.org
Wed Apr 2 21:52:10 CEST 2014


http://hg.python.org/cpython/rev/095fbf03cad7
changeset:   90113:095fbf03cad7
branch:      3.4
parent:      90110:140c5da3dc82
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Apr 02 15:51:38 2014 -0400
summary:
  make sure to test UnicodeEncodeError, too

files:
  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
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -802,7 +802,7 @@
 
     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)), "")
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list