mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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,19 +10,17 @@ import unittest
|
|||
class TestGB2312Map(multibytecodec_support.TestBase_Mapping,
|
||||
unittest.TestCase):
|
||||
encoding = 'gb2312'
|
||||
mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-CN.TXT'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/EUC-CN.TXT'
|
||||
|
||||
class TestGBKMap(multibytecodec_support.TestBase_Mapping,
|
||||
unittest.TestCase):
|
||||
encoding = 'gbk'
|
||||
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/' \
|
||||
'MICSFT/WINDOWS/CP936.TXT'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/CP936.TXT'
|
||||
|
||||
class TestGB18030Map(multibytecodec_support.TestBase_Mapping,
|
||||
unittest.TestCase):
|
||||
encoding = 'gb18030'
|
||||
mapfileurl = 'http://source.icu-project.org/repos/icu/data/' \
|
||||
'trunk/charset/data/xml/gb-18030-2000.xml'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/gb-18030-2000.xml'
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue