[Python-Dev] [Python-checkins] cpython (2.7): #22650: test suite: load Unicode test data files from www.pythontest.net (original) (raw)

Benjamin Peterson benjamin at python.org
Thu Nov 6 15:41:50 CET 2014


On Thu, Nov 6, 2014, at 09:39, Brett Cannon wrote:

What is pythontest.net? Is it something we control, and if so how do we add things to it for tests? Did I miss an email on python-dev or python-committers about this?

See https://bugs.python.org/issue22650

On Thu Nov 06 2014 at 8:57:22 AM georg.brandl <python-checkins at python.org> wrote: > https://hg.python.org/cpython/rev/0af36ea1d010 > changeset: 93417:0af36ea1d010 > branch: 2.7 > parent: 93401:3e8d3c4bc17e > user: Georg Brandl <georg at python.org> > date: Thu Nov 06 14:37:49 2014 +0100 > summary: > #22650: test suite: load Unicode test data files from www.pythontest.net > > files: > Lib/test/testcodecmapscn.py | 8 +++----- > Lib/test/testcodecmapshk.py | 2 +- > Lib/test/testcodecmapsjp.py | 12 +++++------- > Lib/test/testcodecmapskr.py | 8 +++----- > Lib/test/testcodecmapstw.py | 6 ++---- > Lib/test/testnormalization.py | 2 +- > 6 files changed, 15 insertions(+), 23 deletions(-) > > > diff --git a/Lib/test/testcodecmapscn.py b/Lib/test/testcodecmapscn.py > --- a/Lib/test/testcodecmapscn.py > +++ b/Lib/test/testcodecmapscn.py > @@ -10,19 +10,17 @@ > class TestGB2312Map(testmultibytecodecsupport.TestBaseMapping, > 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(testmultibytecodecsupport.TestBaseMapping, > 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(testmultibytecodecsupport.TestBaseMapping, > 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' > > > def testmain(): > diff --git a/Lib/test/testcodecmapshk.py b/Lib/test/testcodecmapshk.py > --- a/Lib/test/testcodecmapshk.py > +++ b/Lib/test/testcodecmapshk.py > @@ -10,7 +10,7 @@ > class TestBig5HKSCSMap(testmultibytecodecsupport.TestBaseMapping, > unittest.TestCase): > encoding = 'big5hkscs' > - mapfileurl = 'http://people.freebsd.org/~ > perky/i18n/BIG5HKSCS-2004.TXT' > + mapfileurl = 'http://www.pythontest.net/unicode/BIG5HKSCS-2004.TXT' > > def testmain(): > testsupport.rununittest(name) > diff --git a/Lib/test/testcodecmapsjp.py b/Lib/test/testcodecmapsjp.py > --- a/Lib/test/testcodecmapsjp.py > +++ b/Lib/test/testcodecmapsjp.py > @@ -10,8 +10,7 @@ > class TestCP932Map(testmultibytecodecsupport.TestBaseMapping, > 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 = [_ _> ('\x80', u'\u0080'),_ _> ('\xa0', u'\uf8f0'),_ _> @@ -27,15 +26,14 @@_ _> unittest.TestCase):_ _> encoding = 'eucjp'_ _> 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(testmultibytecodecsupport.TestBaseMapping, > unittest.TestCase): > encoding = 'shiftjis' > mapfilename = 'SHIFTJIS.TXT' _> - mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE' _ > - '/EASTASIA/JIS/SHIFTJIS.TXT' > + mapfileurl = 'http://www.pythontest.net/unicode/SHIFTJIS.TXT' > passenctest = [ > ('\x81', u'\'), > ] > @@ -49,14 +47,14 @@ > unittest.TestCase): > encoding = 'eucjisx0213' > 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(testmultibytecodecsupport.TestBaseMapping, > unittest.TestCase): > encoding = 'shiftjisx0213' > mapfilename = 'SHIFTJISX0213.TXT' > - mapfileurl = 'http://people.freebsd.org/~ > perky/i18n/SHIFTJISX0213.TXT' > + mapfileurl = 'http://www.pythontest.net/unicode/SHIFTJISX0213.TXT' > > > def testmain(): > diff --git a/Lib/test/testcodecmapskr.py b/Lib/test/testcodecmapskr.py > --- a/Lib/test/testcodecmapskr.py > +++ b/Lib/test/testcodecmapskr.py > @@ -10,14 +10,13 @@ > class TestCP949Map(testmultibytecodecsupport.TestBaseMapping, > unittest.TestCase): > encoding = 'cp949' > - mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT' _> _ > - '/WINDOWS/CP949.TXT' > + mapfileurl = 'http://www.pythontest.net/unicode/CP949.TXT' > > > class TestEUCKRMap(testmultibytecodecsupport.TestBaseMapping, > unittest.TestCase): > encoding = 'euckr' > - mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-KR.TXT' > + mapfileurl = 'http://www.pythontest.net/unicode/EUC-KR.TXT' > > # A4D4 HANGUL FILLER indicates the begin of 8-bytes make-up sequence. > passenctest = [('\xa4\xd4', u'\u3164')] > @@ -27,8 +26,7 @@ > class TestJOHABMap(testmultibytecodecsupport.TestBaseMapping, > unittest.TestCase): > encoding = 'johab' > - mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/ _> EASTASIA/' _ > - 'KSC/JOHAB.TXT' > + mapfileurl = 'http://www.pythontest.net/unicode/JOHAB.TXT' > # KS X 1001 standard assigned 0x5c as WON SIGN. > # but, in early 90s that is the only era used johab widely, > # the most softwares implements it as REVERSE SOLIDUS. > diff --git a/Lib/test/testcodecmapstw.py b/Lib/test/testcodecmapstw.py > --- a/Lib/test/testcodecmapstw.py > +++ b/Lib/test/testcodecmapstw.py > @@ -10,14 +10,12 @@ > class TestBIG5Map(testmultibytecodecsupport.TestBaseMapping, > unittest.TestCase): > encoding = 'big5' _> - mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/' _ > - 'EASTASIA/OTHER/BIG5.TXT' > + mapfileurl = 'http://www.pythontest.net/unicode/BIG5.TXT' > > class TestCP950Map(testmultibytecodecsupport.TestBaseMapping, > unittest.TestCase): > encoding = 'cp950' > - mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' _> _ > - 'WINDOWS/CP950.TXT' > + mapfileurl = 'http://www.pythontest.net/unicode/CP950.TXT' > passenctest = [_ _> ('\xa2\xcc', u'\u5341'),_ _> ('\xa2\xce', u'\u5345'),_ _> diff --git a/Lib/test/testnormalization.py b/Lib/test/testnormalization._ _> py_ _> --- a/Lib/test/testnormalization.py_ _> +++ b/Lib/test/testnormalization.py_ _> @@ -7,7 +7,7 @@_ _> from unicodedata import normalize, unidataversion_ _>_ _> TESTDATAFILE = "NormalizationTest.txt"_ _> -TESTDATAURL = "http://www.unicode.org/Public/" + unidataversion + > "/ucd/" + TESTDATAFILE > +TESTDATAURL = "http://www.pythontest.net/unicode/" + unidataversion + > "/" + TESTDATAFILE > > def checkversion(testfile): > hdr = testfile.readline() > > -- > Repository URL: https://hg.python.org/cpython _> ________________________ > Python-checkins mailing list > Python-checkins at python.org > https://mail.python.org/mailman/listinfo/python-checkins >


Python-checkins mailing list Python-checkins at python.org https://mail.python.org/mailman/listinfo/python-checkins



More information about the Python-Dev mailing list