[Python-3000-checkins] r55554 - python/branches/py3k-struni/Lib/test/test_exceptions.py

walter.doerwald python-3000-checkins at python.org
Thu May 24 19:49:57 CEST 2007


Author: walter.doerwald
Date: Thu May 24 19:49:56 2007
New Revision: 55554

Modified:
   python/branches/py3k-struni/Lib/test/test_exceptions.py
Log:
Fix test_exceptions.py: There were still str8 objects
in the UnicodeError constructor tests, but the
constructors take str arguments now.


Modified: python/branches/py3k-struni/Lib/test/test_exceptions.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_exceptions.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_exceptions.py	Thu May 24 19:49:56 2007
@@ -252,19 +252,19 @@
                  'print_file_and_line' : None, 'msg' : 'msgStr',
                  'filename' : None, 'lineno' : None, 'offset' : None}),
             (UnicodeError, (), {'args' : (),}),
-            (UnicodeEncodeError, (str8('ascii'), 'a', 0, 1,
-                                  str8('ordinal not in range')),
+            (UnicodeEncodeError, ('ascii', 'a', 0, 1,
+                                  'ordinal not in range'),
                 {'args' : ('ascii', 'a', 0, 1,
                                            'ordinal not in range'),
                  'encoding' : 'ascii', 'object' : 'a',
                  'start' : 0, 'reason' : 'ordinal not in range'}),
-            (UnicodeDecodeError, (str8('ascii'), b'\xff', 0, 1,
-                                  str8('ordinal not in range')),
+            (UnicodeDecodeError, ('ascii', b'\xff', 0, 1,
+                                  'ordinal not in range'),
                 {'args' : ('ascii', b'\xff', 0, 1,
                                            'ordinal not in range'),
                  'encoding' : 'ascii', 'object' : b'\xff',
                  'start' : 0, 'reason' : 'ordinal not in range'}),
-            (UnicodeTranslateError, ("\u3042", 0, 1, str8("ouch")),
+            (UnicodeTranslateError, ("\u3042", 0, 1, "ouch"),
                 {'args' : ('\u3042', 0, 1, 'ouch'),
                  'object' : '\u3042', 'reason' : 'ouch',
                  'start' : 0, 'end' : 1}),


More information about the Python-3000-checkins mailing list