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

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


http://hg.python.org/cpython/rev/c03e8b257cf7
changeset:   90114:c03e8b257cf7
branch:      2.7
parent:      90111:afa7fb2cbe3b
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
@@ -433,7 +433,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