@@ -289,7 +289,7 @@ def test_parse_again(self):
289289 'mac-roman' , 'mac-turkish' ,
290290 'koi8-r' , 'koi8-t' , 'koi8-u' , 'kz1048' , 'ptcp154' ,
291291 ])
292- def test_supported_ecodings (self , encoding ):
292+ def test_supported_encodings (self , encoding ):
293293 out = self .Outputter ()
294294 parser = expat .ParserCreate ()
295295 self ._hookup_callbacks (parser , out )
@@ -308,7 +308,7 @@ def test_supported_ecodings(self, encoding):
308308 'UTF-8' , 'utf-8' , 'utf-16' , 'utf-16le' , 'utf-16be' ,
309309 'koi8-u' , 'cp1125' , 'cp1251' , 'iso8859-5' , 'mac-cyrillic' ,
310310 ])
311- def test_supported_ecodings2 (self , encoding ):
311+ def test_supported_encodings2 (self , encoding ):
312312 out = self .Outputter ()
313313 parser = expat .ParserCreate ()
314314 self ._hookup_callbacks (parser , out )
@@ -334,7 +334,7 @@ def test_supported_ecodings2(self, encoding):
334334 "johab" ,
335335 "Shift_JIS" , "Shift_JIS-2004" , "Shift_JISX0213" ,
336336 ])
337- def test_unsupportes_ecodings (self , encoding ):
337+ def test_unsupportes_encodings (self , encoding ):
338338 parser = expat .ParserCreate ()
339339 data = (f'<?xml version="1.0" encoding="{ encoding } "?>\n '
340340 '<root></root>' ).encode (encoding )
@@ -352,7 +352,7 @@ def test_unsupportes_ecodings(self, encoding):
352352 'cp1026' , 'cp1140' ,
353353 'mac_arabic' , 'mac_farsi' ,
354354 ])
355- def test_incompatible_ecodings (self , encoding ):
355+ def test_incompatible_encodings (self , encoding ):
356356 parser = expat .ParserCreate ()
357357 data = (f'<?xml version="1.0" encoding="{ encoding } "?>\n '
358358 '<root></root>' ).encode (encoding )
@@ -368,20 +368,20 @@ def test_incompatible_ecodings(self, encoding):
368368 @support .subTests ('encoding' , [
369369 'hex_codec' , 'rot_13' ,
370370 ])
371- def test_non_text_ecodings (self , encoding ):
371+ def test_non_text_encodings (self , encoding ):
372372 parser = expat .ParserCreate ()
373373 data = (f'<?xml version="1.0" encoding="{ encoding } "?>\n '
374374 '<root></root>' ).encode ()
375375 with self .assertRaises (LookupError ):
376376 parser .Parse (data , True )
377377
378- def test_undefined_ecoding (self ):
378+ def test_undefined_encoding (self ):
379379 parser = expat .ParserCreate ()
380380 data = b'<?xml version="1.0" encoding="undefined"?>\n <root></root>'
381381 with self .assertRaises (UnicodeError ):
382382 parser .Parse (data , True )
383383
384- def test_unknown_ecoding (self ):
384+ def test_unknown_encoding (self ):
385385 parser = expat .ParserCreate ()
386386 data = b'<?xml version="1.0" encoding="xyz"?>\n <root></root>'
387387 with self .assertRaises (LookupError ):
0 commit comments