[Python-checkins] python/dist/src/Lib/test test_codeccallbacks.py, 1.13, 1.14

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Tue Aug 12 11:34:51 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv14911/Lib/test

Modified Files:
	test_codeccallbacks.py 
Log Message:
Add a unicode prefix to the characters in the UnicodeEncodeError and
UnicodeTranslateError message.


Index: test_codeccallbacks.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_codeccallbacks.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_codeccallbacks.py	12 Aug 2003 17:32:43 -0000	1.13
--- test_codeccallbacks.py	12 Aug 2003 17:34:49 -0000	1.14
***************
*** 259,263 ****
              UnicodeEncodeError,
              ["ascii", u"g\xfcrk", 1, 2, "ouch"],
!             "'ascii' codec can't encode character '\\xfc' in position 1: ouch"
          )
          self.check_exceptionobjectargs(
--- 259,263 ----
              UnicodeEncodeError,
              ["ascii", u"g\xfcrk", 1, 2, "ouch"],
!             "'ascii' codec can't encode character u'\\xfc' in position 1: ouch"
          )
          self.check_exceptionobjectargs(
***************
*** 269,283 ****
              UnicodeEncodeError,
              ["ascii", u"\xfcx", 0, 1, "ouch"],
!             "'ascii' codec can't encode character '\\xfc' in position 0: ouch"
          )
          self.check_exceptionobjectargs(
              UnicodeEncodeError,
              ["ascii", u"\u0100x", 0, 1, "ouch"],
!             "'ascii' codec can't encode character '\\u0100' in position 0: ouch"
          )
          self.check_exceptionobjectargs(
              UnicodeEncodeError,
              ["ascii", u"\uffffx", 0, 1, "ouch"],
!             "'ascii' codec can't encode character '\\uffff' in position 0: ouch"
          )
          if sys.maxunicode > 0xffff:
--- 269,283 ----
              UnicodeEncodeError,
              ["ascii", u"\xfcx", 0, 1, "ouch"],
!             "'ascii' codec can't encode character u'\\xfc' in position 0: ouch"
          )
          self.check_exceptionobjectargs(
              UnicodeEncodeError,
              ["ascii", u"\u0100x", 0, 1, "ouch"],
!             "'ascii' codec can't encode character u'\\u0100' in position 0: ouch"
          )
          self.check_exceptionobjectargs(
              UnicodeEncodeError,
              ["ascii", u"\uffffx", 0, 1, "ouch"],
!             "'ascii' codec can't encode character u'\\uffff' in position 0: ouch"
          )
          if sys.maxunicode > 0xffff:
***************
*** 285,289 ****
                  UnicodeEncodeError,
                  ["ascii", u"\U00010000x", 0, 1, "ouch"],
!                 "'ascii' codec can't encode character '\\U00010000' in position 0: ouch"
              )
  
--- 285,289 ----
                  UnicodeEncodeError,
                  ["ascii", u"\U00010000x", 0, 1, "ouch"],
!                 "'ascii' codec can't encode character u'\\U00010000' in position 0: ouch"
              )
  
***************
*** 304,318 ****
              UnicodeTranslateError,
              [u"g\xfcrk", 1, 2, "ouch"],
!             "can't translate character '\\xfc' in position 1: ouch"
          )
          self.check_exceptionobjectargs(
              UnicodeTranslateError,
              [u"g\u0100rk", 1, 2, "ouch"],
!             "can't translate character '\\u0100' in position 1: ouch"
          )
          self.check_exceptionobjectargs(
              UnicodeTranslateError,
              [u"g\uffffrk", 1, 2, "ouch"],
!             "can't translate character '\\uffff' in position 1: ouch"
          )
          if sys.maxunicode > 0xffff:
--- 304,318 ----
              UnicodeTranslateError,
              [u"g\xfcrk", 1, 2, "ouch"],
!             "can't translate character u'\\xfc' in position 1: ouch"
          )
          self.check_exceptionobjectargs(
              UnicodeTranslateError,
              [u"g\u0100rk", 1, 2, "ouch"],
!             "can't translate character u'\\u0100' in position 1: ouch"
          )
          self.check_exceptionobjectargs(
              UnicodeTranslateError,
              [u"g\uffffrk", 1, 2, "ouch"],
!             "can't translate character u'\\uffff' in position 1: ouch"
          )
          if sys.maxunicode > 0xffff:
***************
*** 320,324 ****
                  UnicodeTranslateError,
                  [u"g\U00010000rk", 1, 2, "ouch"],
!                 "can't translate character '\\U00010000' in position 1: ouch"
              )
          self.check_exceptionobjectargs(
--- 320,324 ----
                  UnicodeTranslateError,
                  [u"g\U00010000rk", 1, 2, "ouch"],
!                 "can't translate character u'\\U00010000' in position 1: ouch"
              )
          self.check_exceptionobjectargs(





More information about the Python-checkins mailing list