diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-24 17:49:56 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-24 17:49:56 (GMT) |
commit | eceb0fbb0a9d6645316b9f52206f204ceef82685 (patch) | |
tree | 93f4ee4ffd0b33c6f2833f432174b52b6ee8f528 /Lib/test/test_exceptions.py | |
parent | 78c1c4d49f47e248c9ea6f326612b2378e352c61 (diff) | |
download | cpython-eceb0fbb0a9d6645316b9f52206f204ceef82685.zip cpython-eceb0fbb0a9d6645316b9f52206f204ceef82685.tar.gz cpython-eceb0fbb0a9d6645316b9f52206f204ceef82685.tar.bz2 |
Fix test_exceptions.py: There were still str8 objects
in the UnicodeError constructor tests, but the
constructors take str arguments now.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 64b13b7..30cc37c 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -252,19 +252,19 @@ class ExceptionTests(unittest.TestCase): '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}), |