55#
66
77from test import support
8- from test import test_multibytecodec_support
8+ from test import multibytecodec_support
99import unittest
1010
11- class Test_CP932 (test_multibytecodec_support .TestBase , unittest .TestCase ):
11+ class Test_CP932 (multibytecodec_support .TestBase , unittest .TestCase ):
1212 encoding = 'cp932'
13- tstring = test_multibytecodec_support .load_teststring ('shift_jis' )
13+ tstring = multibytecodec_support .load_teststring ('shift_jis' )
1414 codectests = (
1515 # invalid bytes
1616 (b"abc\x81 \x00 \x81 \x00 \x82 \x84 " , "strict" , None ),
@@ -41,30 +41,30 @@ class Test_CP932(test_multibytecodec_support.TestBase, unittest.TestCase):
4141 (b"\x8e XY" , "replace" , "\ufffd XY" ),
4242)
4343
44- class Test_EUC_JIS_2004 (test_multibytecodec_support .TestBase ,
44+ class Test_EUC_JIS_2004 (multibytecodec_support .TestBase ,
4545 unittest .TestCase ):
4646 encoding = 'euc_jis_2004'
47- tstring = test_multibytecodec_support .load_teststring ('euc_jisx0213' )
47+ tstring = multibytecodec_support .load_teststring ('euc_jisx0213' )
4848 codectests = euc_commontests
4949 xmlcharnametest = (
5050 "\xab \u211c \xbb = \u2329 \u1234 \u232a " ,
5151 b"\xa9 \xa8 ℜ\xa9 \xb2 = ⟨ሴ⟩"
5252 )
5353
54- class Test_EUC_JISX0213 (test_multibytecodec_support .TestBase ,
54+ class Test_EUC_JISX0213 (multibytecodec_support .TestBase ,
5555 unittest .TestCase ):
5656 encoding = 'euc_jisx0213'
57- tstring = test_multibytecodec_support .load_teststring ('euc_jisx0213' )
57+ tstring = multibytecodec_support .load_teststring ('euc_jisx0213' )
5858 codectests = euc_commontests
5959 xmlcharnametest = (
6060 "\xab \u211c \xbb = \u2329 \u1234 \u232a " ,
6161 b"\xa9 \xa8 ℜ\xa9 \xb2 = ⟨ሴ⟩"
6262 )
6363
64- class Test_EUC_JP_COMPAT (test_multibytecodec_support .TestBase ,
64+ class Test_EUC_JP_COMPAT (multibytecodec_support .TestBase ,
6565 unittest .TestCase ):
6666 encoding = 'euc_jp'
67- tstring = test_multibytecodec_support .load_teststring ('euc_jp' )
67+ tstring = multibytecodec_support .load_teststring ('euc_jp' )
6868 codectests = euc_commontests + (
6969 ("\xa5 " , "strict" , b"\x5c " ),
7070 ("\u203e " , "strict" , b"\x7e " ),
@@ -76,9 +76,9 @@ class Test_EUC_JP_COMPAT(test_multibytecodec_support.TestBase,
7676 (b"abc\x80 \x80 \x82 \x84 def" , "ignore" , "abc\uff44 def" ),
7777)
7878
79- class Test_SJIS_COMPAT (test_multibytecodec_support .TestBase , unittest .TestCase ):
79+ class Test_SJIS_COMPAT (multibytecodec_support .TestBase , unittest .TestCase ):
8080 encoding = 'shift_jis'
81- tstring = test_multibytecodec_support .load_teststring ('shift_jis' )
81+ tstring = multibytecodec_support .load_teststring ('shift_jis' )
8282 codectests = shiftjis_commonenctests + (
8383 (b"abc\x80 \x80 \x82 \x84 " , "replace" , "abc\ufffd \ufffd \uff44 " ),
8484 (b"abc\x80 \x80 \x82 \x84 \x88 " , "replace" , "abc\ufffd \ufffd \uff44 \ufffd " ),
@@ -90,9 +90,9 @@ class Test_SJIS_COMPAT(test_multibytecodec_support.TestBase, unittest.TestCase):
9090 (b"abc\xFF \x58 " , "replace" , "abc\ufffd X" ),
9191 )
9292
93- class Test_SJIS_2004 (test_multibytecodec_support .TestBase , unittest .TestCase ):
93+ class Test_SJIS_2004 (multibytecodec_support .TestBase , unittest .TestCase ):
9494 encoding = 'shift_jis_2004'
95- tstring = test_multibytecodec_support .load_teststring ('shift_jis' )
95+ tstring = multibytecodec_support .load_teststring ('shift_jis' )
9696 codectests = shiftjis_commonenctests + (
9797 (b"\\ \x7e " , "strict" , "\xa5 \u203e " ),
9898 (b"\x81 \x5f \x81 \x61 \x81 \x7c " , "strict" , "\\ \u2016 \u2212 " ),
@@ -108,9 +108,9 @@ class Test_SJIS_2004(test_multibytecodec_support.TestBase, unittest.TestCase):
108108 b"\x85 Gℜ\x85 Q = ⟨ሴ⟩"
109109 )
110110
111- class Test_SJISX0213 (test_multibytecodec_support .TestBase , unittest .TestCase ):
111+ class Test_SJISX0213 (multibytecodec_support .TestBase , unittest .TestCase ):
112112 encoding = 'shift_jisx0213'
113- tstring = test_multibytecodec_support .load_teststring ('shift_jisx0213' )
113+ tstring = multibytecodec_support .load_teststring ('shift_jisx0213' )
114114 codectests = shiftjis_commonenctests + (
115115 (b"abc\x80 \x80 \x82 \x84 " , "replace" , "abc\ufffd \ufffd \uff44 " ),
116116 (b"abc\x80 \x80 \x82 \x84 \x88 " , "replace" , "abc\ufffd \ufffd \uff44 \ufffd " ),
0 commit comments