@@ -258,7 +258,7 @@ def test_unicodeencodeerror(self):
258258 self .check_exceptionobjectargs (
259259 UnicodeEncodeError ,
260260 ["ascii" , u"g\xfc rk" , 1 , 2 , "ouch" ],
261- "'ascii' codec can't encode character '\\ xfc' in position 1: ouch"
261+ "'ascii' codec can't encode character u '\\ xfc' in position 1: ouch"
262262 )
263263 self .check_exceptionobjectargs (
264264 UnicodeEncodeError ,
@@ -268,23 +268,23 @@ def test_unicodeencodeerror(self):
268268 self .check_exceptionobjectargs (
269269 UnicodeEncodeError ,
270270 ["ascii" , u"\xfc x" , 0 , 1 , "ouch" ],
271- "'ascii' codec can't encode character '\\ xfc' in position 0: ouch"
271+ "'ascii' codec can't encode character u '\\ xfc' in position 0: ouch"
272272 )
273273 self .check_exceptionobjectargs (
274274 UnicodeEncodeError ,
275275 ["ascii" , u"\u0100 x" , 0 , 1 , "ouch" ],
276- "'ascii' codec can't encode character '\\ u0100' in position 0: ouch"
276+ "'ascii' codec can't encode character u '\\ u0100' in position 0: ouch"
277277 )
278278 self .check_exceptionobjectargs (
279279 UnicodeEncodeError ,
280280 ["ascii" , u"\uffff x" , 0 , 1 , "ouch" ],
281- "'ascii' codec can't encode character '\\ uffff' in position 0: ouch"
281+ "'ascii' codec can't encode character u '\\ uffff' in position 0: ouch"
282282 )
283283 if sys .maxunicode > 0xffff :
284284 self .check_exceptionobjectargs (
285285 UnicodeEncodeError ,
286286 ["ascii" , u"\U00010000 x" , 0 , 1 , "ouch" ],
287- "'ascii' codec can't encode character '\\ U00010000' in position 0: ouch"
287+ "'ascii' codec can't encode character u '\\ U00010000' in position 0: ouch"
288288 )
289289
290290 def test_unicodedecodeerror (self ):
@@ -303,23 +303,23 @@ def test_unicodetranslateerror(self):
303303 self .check_exceptionobjectargs (
304304 UnicodeTranslateError ,
305305 [u"g\xfc rk" , 1 , 2 , "ouch" ],
306- "can't translate character '\\ xfc' in position 1: ouch"
306+ "can't translate character u '\\ xfc' in position 1: ouch"
307307 )
308308 self .check_exceptionobjectargs (
309309 UnicodeTranslateError ,
310310 [u"g\u0100 rk" , 1 , 2 , "ouch" ],
311- "can't translate character '\\ u0100' in position 1: ouch"
311+ "can't translate character u '\\ u0100' in position 1: ouch"
312312 )
313313 self .check_exceptionobjectargs (
314314 UnicodeTranslateError ,
315315 [u"g\uffff rk" , 1 , 2 , "ouch" ],
316- "can't translate character '\\ uffff' in position 1: ouch"
316+ "can't translate character u '\\ uffff' in position 1: ouch"
317317 )
318318 if sys .maxunicode > 0xffff :
319319 self .check_exceptionobjectargs (
320320 UnicodeTranslateError ,
321321 [u"g\U00010000 rk" , 1 , 2 , "ouch" ],
322- "can't translate character '\\ U00010000' in position 1: ouch"
322+ "can't translate character u '\\ U00010000' in position 1: ouch"
323323 )
324324 self .check_exceptionobjectargs (
325325 UnicodeTranslateError ,
0 commit comments