mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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,14 +10,12 @@ import unittest
|
|||
class TestBIG5Map(multibytecodec_support.TestBase_Mapping,
|
||||
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(multibytecodec_support.TestBase_Mapping,
|
||||
unittest.TestCase):
|
||||
encoding = 'cp950'
|
||||
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \
|
||||
'WINDOWS/CP950.TXT'
|
||||
mapfileurl = 'http://www.pythontest.net/unicode/CP950.TXT'
|
||||
pass_enctest = [
|
||||
(b'\xa2\xcc', '\u5341'),
|
||||
(b'\xa2\xce', '\u5345'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue