Mercurial > cpython-lru_cache-weakref
view Lib/test/test_codecmaps_tw.py @ 78069:a8aa77458e12 3.2
Add c_size_t and c_ssize_t to the ctypes summary table.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 12 Jul 2012 20:31:50 +0200 |
| parents | fcfe324663a6 |
| children | 16cbd84de848 |
line wrap: on
line source
#!/usr/bin/env python3 # # test_codecmaps_tw.py # Codec mapping tests for ROC encodings # from test import support from test import test_multibytecodec_support import unittest class TestBIG5Map(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase): encoding = 'big5' mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/' \ 'EASTASIA/OTHER/BIG5.TXT' class TestCP950Map(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase): encoding = 'cp950' mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \ 'WINDOWS/CP950.TXT' pass_enctest = [ (b'\xa2\xcc', '\u5341'), (b'\xa2\xce', '\u5345'), ] def test_main(): support.run_unittest(__name__) if __name__ == "__main__": test_main()
