mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
#22650: test suite: load Unicode test data files from www.pythontest.net
This commit is contained in:
parent
abd1c97bd2
commit
5a15508f97
7 changed files with 16 additions and 24 deletions
|
@ -10,8 +10,7 @@ import unittest
|
|||
class TestCP932Map(multibytecodec_support.TestBase_Mapping,
|
||||
unittest.TestCase):
|
||||
encoding = 'cp932'
|
||||
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \
|
||||
'WINDOWS/CP932.TXT'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/CP932.TXT'
|
||||
supmaps = [
|
||||
(b'\x80', '\u0080'),
|
||||
(b'\xa0', '\uf8f0'),
|
||||
|
@ -27,15 +26,14 @@ class TestEUCJPCOMPATMap(multibytecodec_support.TestBase_Mapping,
|
|||
unittest.TestCase):
|
||||
encoding = 'euc_jp'
|
||||
mapfilename = 'EUC-JP.TXT'
|
||||
mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-JP.TXT'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/EUC-JP.TXT'
|
||||
|
||||
|
||||
class TestSJISCOMPATMap(multibytecodec_support.TestBase_Mapping,
|
||||
unittest.TestCase):
|
||||
encoding = 'shift_jis'
|
||||
mapfilename = 'SHIFTJIS.TXT'
|
||||
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE' \
|
||||
'/EASTASIA/JIS/SHIFTJIS.TXT'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/SHIFTJIS.TXT'
|
||||
pass_enctest = [
|
||||
(b'\x81_', '\\'),
|
||||
]
|
||||
|
@ -49,14 +47,14 @@ class TestEUCJISX0213Map(multibytecodec_support.TestBase_Mapping,
|
|||
unittest.TestCase):
|
||||
encoding = 'euc_jisx0213'
|
||||
mapfilename = 'EUC-JISX0213.TXT'
|
||||
mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-JISX0213.TXT'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/EUC-JISX0213.TXT'
|
||||
|
||||
|
||||
class TestSJISX0213Map(multibytecodec_support.TestBase_Mapping,
|
||||
unittest.TestCase):
|
||||
encoding = 'shift_jisx0213'
|
||||
mapfilename = 'SHIFT_JISX0213.TXT'
|
||||
mapfileurl = 'http://people.freebsd.org/~perky/i18n/SHIFT_JISX0213.TXT'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/SHIFT_JISX0213.TXT'
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue