Skip to content

Commit 75d9aca

Browse files
committed
Rename test_ file that is really a support file to remove test_ prefix.
I thought I had run the full test suite before the last checkin, but obviously I didn't. test_multibytecodec_support.py isn't really a test file, it is a support file that contains a base test class. Rename it to multibytecodec_support so that regrtest test discovery doesn't think it is a test file that should be run.
1 parent f1cdb60 commit 75d9aca

12 files changed

+64
-64
lines changed

Lib/test/test_multibytecodec_support.py renamed to Lib/test/multibytecodec_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
#
3-
# test_multibytecodec_support.py
3+
# multibytecodec_support.py
44
# Common Unittest Routines for CJK codecs
55
#
66

Lib/test/test_codecencodings_cn.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
#
66

77
from test import support
8-
from test import test_multibytecodec_support
8+
from test import multibytecodec_support
99
import unittest
1010

11-
class Test_GB2312(test_multibytecodec_support.TestBase, unittest.TestCase):
11+
class Test_GB2312(multibytecodec_support.TestBase, unittest.TestCase):
1212
encoding = 'gb2312'
13-
tstring = test_multibytecodec_support.load_teststring('gb2312')
13+
tstring = multibytecodec_support.load_teststring('gb2312')
1414
codectests = (
1515
# invalid bytes
1616
(b"abc\x81\x81\xc1\xc4", "strict", None),
@@ -21,9 +21,9 @@ class Test_GB2312(test_multibytecodec_support.TestBase, unittest.TestCase):
2121
(b"\xc1\x64", "strict", None),
2222
)
2323

24-
class Test_GBK(test_multibytecodec_support.TestBase, unittest.TestCase):
24+
class Test_GBK(multibytecodec_support.TestBase, unittest.TestCase):
2525
encoding = 'gbk'
26-
tstring = test_multibytecodec_support.load_teststring('gbk')
26+
tstring = multibytecodec_support.load_teststring('gbk')
2727
codectests = (
2828
# invalid bytes
2929
(b"abc\x80\x80\xc1\xc4", "strict", None),
@@ -35,9 +35,9 @@ class Test_GBK(test_multibytecodec_support.TestBase, unittest.TestCase):
3535
("\u30fb", "strict", None),
3636
)
3737

38-
class Test_GB18030(test_multibytecodec_support.TestBase, unittest.TestCase):
38+
class Test_GB18030(multibytecodec_support.TestBase, unittest.TestCase):
3939
encoding = 'gb18030'
40-
tstring = test_multibytecodec_support.load_teststring('gb18030')
40+
tstring = multibytecodec_support.load_teststring('gb18030')
4141
codectests = (
4242
# invalid bytes
4343
(b"abc\x80\x80\xc1\xc4", "strict", None),
@@ -53,9 +53,9 @@ class Test_GB18030(test_multibytecodec_support.TestBase, unittest.TestCase):
5353
)
5454
has_iso10646 = True
5555

56-
class Test_HZ(test_multibytecodec_support.TestBase, unittest.TestCase):
56+
class Test_HZ(multibytecodec_support.TestBase, unittest.TestCase):
5757
encoding = 'hz'
58-
tstring = test_multibytecodec_support.load_teststring('hz')
58+
tstring = multibytecodec_support.load_teststring('hz')
5959
codectests = (
6060
# test '~\n' (3 lines)
6161
(b'This sentence is in ASCII.\n'

Lib/test/test_codecencodings_hk.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
#
66

77
from test import support
8-
from test import test_multibytecodec_support
8+
from test import multibytecodec_support
99
import unittest
1010

11-
class Test_Big5HKSCS(test_multibytecodec_support.TestBase, unittest.TestCase):
11+
class Test_Big5HKSCS(multibytecodec_support.TestBase, unittest.TestCase):
1212
encoding = 'big5hkscs'
13-
tstring = test_multibytecodec_support.load_teststring('big5hkscs')
13+
tstring = multibytecodec_support.load_teststring('big5hkscs')
1414
codectests = (
1515
# invalid bytes
1616
(b"abc\x80\x80\xc1\xc4", "strict", None),

Lib/test/test_codecencodings_iso2022.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Codec encoding tests for ISO 2022 encodings.
44

55
from test import support
6-
from test import test_multibytecodec_support
6+
from test import multibytecodec_support
77
import unittest
88

99
COMMON_CODEC_TESTS = (
@@ -13,23 +13,23 @@
1313
(b'ab\x1B$def', 'replace', 'ab\uFFFD'),
1414
)
1515

16-
class Test_ISO2022_JP(test_multibytecodec_support.TestBase, unittest.TestCase):
16+
class Test_ISO2022_JP(multibytecodec_support.TestBase, unittest.TestCase):
1717
encoding = 'iso2022_jp'
18-
tstring = test_multibytecodec_support.load_teststring('iso2022_jp')
18+
tstring = multibytecodec_support.load_teststring('iso2022_jp')
1919
codectests = COMMON_CODEC_TESTS + (
2020
(b'ab\x1BNdef', 'replace', 'ab\x1BNdef'),
2121
)
2222

23-
class Test_ISO2022_JP2(test_multibytecodec_support.TestBase, unittest.TestCase):
23+
class Test_ISO2022_JP2(multibytecodec_support.TestBase, unittest.TestCase):
2424
encoding = 'iso2022_jp_2'
25-
tstring = test_multibytecodec_support.load_teststring('iso2022_jp')
25+
tstring = multibytecodec_support.load_teststring('iso2022_jp')
2626
codectests = COMMON_CODEC_TESTS + (
2727
(b'ab\x1BNdef', 'replace', 'abdef'),
2828
)
2929

30-
class Test_ISO2022_KR(test_multibytecodec_support.TestBase, unittest.TestCase):
30+
class Test_ISO2022_KR(multibytecodec_support.TestBase, unittest.TestCase):
3131
encoding = 'iso2022_kr'
32-
tstring = test_multibytecodec_support.load_teststring('iso2022_kr')
32+
tstring = multibytecodec_support.load_teststring('iso2022_kr')
3333
codectests = COMMON_CODEC_TESTS + (
3434
(b'ab\x1BNdef', 'replace', 'ab\x1BNdef'),
3535
)

Lib/test/test_codecencodings_jp.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
#
66

77
from test import support
8-
from test import test_multibytecodec_support
8+
from test import multibytecodec_support
99
import 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"\x8eXY", "replace", "\ufffdXY"),
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\x84def", "ignore", "abc\uff44def"),
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\ufffdX"),
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"\x85Gℜ\x85Q = ⟨ሴ⟩"
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"),

Lib/test/test_codecencodings_kr.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
#
66

77
from test import support
8-
from test import test_multibytecodec_support
8+
from test import multibytecodec_support
99
import unittest
1010

11-
class Test_CP949(test_multibytecodec_support.TestBase, unittest.TestCase):
11+
class Test_CP949(multibytecodec_support.TestBase, unittest.TestCase):
1212
encoding = 'cp949'
13-
tstring = test_multibytecodec_support.load_teststring('cp949')
13+
tstring = multibytecodec_support.load_teststring('cp949')
1414
codectests = (
1515
# invalid bytes
1616
(b"abc\x80\x80\xc1\xc4", "strict", None),
@@ -20,9 +20,9 @@ class Test_CP949(test_multibytecodec_support.TestBase, unittest.TestCase):
2020
(b"abc\x80\x80\xc1\xc4", "ignore", "abc\uc894"),
2121
)
2222

23-
class Test_EUCKR(test_multibytecodec_support.TestBase, unittest.TestCase):
23+
class Test_EUCKR(multibytecodec_support.TestBase, unittest.TestCase):
2424
encoding = 'euc_kr'
25-
tstring = test_multibytecodec_support.load_teststring('euc_kr')
25+
tstring = multibytecodec_support.load_teststring('euc_kr')
2626
codectests = (
2727
# invalid bytes
2828
(b"abc\x80\x80\xc1\xc4", "strict", None),
@@ -51,9 +51,9 @@ class Test_EUCKR(test_multibytecodec_support.TestBase, unittest.TestCase):
5151
(b"\xc1\xc4", "strict", "\uc894"),
5252
)
5353

54-
class Test_JOHAB(test_multibytecodec_support.TestBase, unittest.TestCase):
54+
class Test_JOHAB(multibytecodec_support.TestBase, unittest.TestCase):
5555
encoding = 'johab'
56-
tstring = test_multibytecodec_support.load_teststring('johab')
56+
tstring = multibytecodec_support.load_teststring('johab')
5757
codectests = (
5858
# invalid bytes
5959
(b"abc\x80\x80\xc1\xc4", "strict", None),

Lib/test/test_codecencodings_tw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
#
66

77
from test import support
8-
from test import test_multibytecodec_support
8+
from test import multibytecodec_support
99
import unittest
1010

11-
class Test_Big5(test_multibytecodec_support.TestBase, unittest.TestCase):
11+
class Test_Big5(multibytecodec_support.TestBase, unittest.TestCase):
1212
encoding = 'big5'
13-
tstring = test_multibytecodec_support.load_teststring('big5')
13+
tstring = multibytecodec_support.load_teststring('big5')
1414
codectests = (
1515
# invalid bytes
1616
(b"abc\x80\x80\xc1\xc4", "strict", None),

Lib/test/test_codecmaps_cn.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
#
66

77
from test import support
8-
from test import test_multibytecodec_support
8+
from test import multibytecodec_support
99
import unittest
1010

11-
class TestGB2312Map(test_multibytecodec_support.TestBase_Mapping,
11+
class TestGB2312Map(multibytecodec_support.TestBase_Mapping,
1212
unittest.TestCase):
1313
encoding = 'gb2312'
1414
mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-CN.TXT'
1515

16-
class TestGBKMap(test_multibytecodec_support.TestBase_Mapping,
16+
class TestGBKMap(multibytecodec_support.TestBase_Mapping,
1717
unittest.TestCase):
1818
encoding = 'gbk'
1919
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/' \
2020
'MICSFT/WINDOWS/CP936.TXT'
2121

22-
class TestGB18030Map(test_multibytecodec_support.TestBase_Mapping,
22+
class TestGB18030Map(multibytecodec_support.TestBase_Mapping,
2323
unittest.TestCase):
2424
encoding = 'gb18030'
2525
mapfileurl = 'http://source.icu-project.org/repos/icu/data/' \

Lib/test/test_codecmaps_hk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#
66

77
from test import support
8-
from test import test_multibytecodec_support
8+
from test import multibytecodec_support
99
import unittest
1010

11-
class TestBig5HKSCSMap(test_multibytecodec_support.TestBase_Mapping,
11+
class TestBig5HKSCSMap(multibytecodec_support.TestBase_Mapping,
1212
unittest.TestCase):
1313
encoding = 'big5hkscs'
1414
mapfileurl = 'http://people.freebsd.org/~perky/i18n/BIG5HKSCS-2004.TXT'

Lib/test/test_codecmaps_jp.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#
66

77
from test import support
8-
from test import test_multibytecodec_support
8+
from test import multibytecodec_support
99
import unittest
1010

11-
class TestCP932Map(test_multibytecodec_support.TestBase_Mapping,
11+
class TestCP932Map(multibytecodec_support.TestBase_Mapping,
1212
unittest.TestCase):
1313
encoding = 'cp932'
1414
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \
@@ -24,14 +24,14 @@ class TestCP932Map(test_multibytecodec_support.TestBase_Mapping,
2424
supmaps.append((bytes([i]), chr(i+0xfec0)))
2525

2626

27-
class TestEUCJPCOMPATMap(test_multibytecodec_support.TestBase_Mapping,
27+
class TestEUCJPCOMPATMap(multibytecodec_support.TestBase_Mapping,
2828
unittest.TestCase):
2929
encoding = 'euc_jp'
3030
mapfilename = 'EUC-JP.TXT'
3131
mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-JP.TXT'
3232

3333

34-
class TestSJISCOMPATMap(test_multibytecodec_support.TestBase_Mapping,
34+
class TestSJISCOMPATMap(multibytecodec_support.TestBase_Mapping,
3535
unittest.TestCase):
3636
encoding = 'shift_jis'
3737
mapfilename = 'SHIFTJIS.TXT'
@@ -46,14 +46,14 @@ class TestSJISCOMPATMap(test_multibytecodec_support.TestBase_Mapping,
4646
(b'\x81_', '\\'),
4747
]
4848

49-
class TestEUCJISX0213Map(test_multibytecodec_support.TestBase_Mapping,
49+
class TestEUCJISX0213Map(multibytecodec_support.TestBase_Mapping,
5050
unittest.TestCase):
5151
encoding = 'euc_jisx0213'
5252
mapfilename = 'EUC-JISX0213.TXT'
5353
mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-JISX0213.TXT'
5454

5555

56-
class TestSJISX0213Map(test_multibytecodec_support.TestBase_Mapping,
56+
class TestSJISX0213Map(multibytecodec_support.TestBase_Mapping,
5757
unittest.TestCase):
5858
encoding = 'shift_jisx0213'
5959
mapfilename = 'SHIFT_JISX0213.TXT'

0 commit comments

Comments
 (0)