Skip to content

Commit eceb0fb

Browse files
committed
Fix test_exceptions.py: There were still str8 objects
in the UnicodeError constructor tests, but the constructors take str arguments now.
1 parent 78c1c4d commit eceb0fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/test/test_exceptions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,19 +252,19 @@ def testAttributes(self):
252252
'print_file_and_line' : None, 'msg' : 'msgStr',
253253
'filename' : None, 'lineno' : None, 'offset' : None}),
254254
(UnicodeError, (), {'args' : (),}),
255-
(UnicodeEncodeError, (str8('ascii'), 'a', 0, 1,
256-
str8('ordinal not in range')),
255+
(UnicodeEncodeError, ('ascii', 'a', 0, 1,
256+
'ordinal not in range'),
257257
{'args' : ('ascii', 'a', 0, 1,
258258
'ordinal not in range'),
259259
'encoding' : 'ascii', 'object' : 'a',
260260
'start' : 0, 'reason' : 'ordinal not in range'}),
261-
(UnicodeDecodeError, (str8('ascii'), b'\xff', 0, 1,
262-
str8('ordinal not in range')),
261+
(UnicodeDecodeError, ('ascii', b'\xff', 0, 1,
262+
'ordinal not in range'),
263263
{'args' : ('ascii', b'\xff', 0, 1,
264264
'ordinal not in range'),
265265
'encoding' : 'ascii', 'object' : b'\xff',
266266
'start' : 0, 'reason' : 'ordinal not in range'}),
267-
(UnicodeTranslateError, ("\u3042", 0, 1, str8("ouch")),
267+
(UnicodeTranslateError, ("\u3042", 0, 1, "ouch"),
268268
{'args' : ('\u3042', 0, 1, 'ouch'),
269269
'object' : '\u3042', 'reason' : 'ouch',
270270
'start' : 0, 'end' : 1}),

0 commit comments

Comments
 (0)